aboutsummaryrefslogtreecommitdiff
path: root/scripts/bpf_helpers_doc.py
diff options
context:
space:
mode:
authorGeert Uytterhoeven <[email protected]>2018-02-23 14:38:31 +0100
committerGreg Kroah-Hartman <[email protected]>2018-02-28 15:29:59 +0100
commit5673444821406dda5fc25e4b52aca419f8065a19 (patch)
tree905334bcdc6ff0897760823f2e2d906811746fe5 /scripts/bpf_helpers_doc.py
parentffab87fdecc655cc676f8be8dd1a2c5e22bd6d47 (diff)
serial: imx: Fix out-of-bounds access through serial port index
The imx_ports[] array is indexed using a value derived from the "serialN" alias in DT, or from platform data, which may lead to an out-of-bounds access. Fix this by adding a range check. Fixes: ff05967a07225ab6 ("serial/imx: add of_alias_get_id() reference back") Signed-off-by: Geert Uytterhoeven <[email protected]> Reviewed-by: Uwe Kleine-König <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions