diff options
| author | Geert Uytterhoeven <[email protected]> | 2018-02-23 14:38:31 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2018-02-28 15:29:59 +0100 |
| commit | 5673444821406dda5fc25e4b52aca419f8065a19 (patch) | |
| tree | 905334bcdc6ff0897760823f2e2d906811746fe5 /tools/perf/scripts/python | |
| parent | ffab87fdecc655cc676f8be8dd1a2c5e22bd6d47 (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 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions