diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2018-02-23 14:38:30 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-02-28 15:29:59 +0100 |
commit | ffab87fdecc655cc676f8be8dd1a2c5e22bd6d47 (patch) | |
tree | b87672bd402ff677c63b8f4f046234d8a8fc1551 /mm/cma.c | |
parent | f9f5786987e81d166c60833edcb7d1836aa16944 (diff) |
serial: fsl_lpuart: Fix out-of-bounds access through DT alias
The lpuart_ports[] array is indexed using a value derived from the
"serialN" alias in DT, which may lead to an out-of-bounds access.
Fix this by adding a range check.
Fixes: c9e2e946fb0ba5d2 ("tty: serial: add Freescale lpuart driver support")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm/cma.c')
0 files changed, 0 insertions, 0 deletions