Geert Uytterhoeven
afc7851fab
serial: pxa: Fix out-of-bounds access through serial port index
...
The serial_pxa_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: 699c20f3e6310aa2 ("serial: pxa: add OF support")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-02-28 15:29:59 +01:00
..
2018-02-28 13:40:22 +01:00
2017-11-13 21:05:31 -08:00
2018-01-09 16:37:03 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2018-02-28 13:30:09 +01:00
2017-11-08 13:08:12 +01:00
2017-11-28 15:35:51 +01:00
2017-11-02 11:10:55 +01:00
2017-11-08 13:08:12 +01:00
2017-11-02 11:10:55 +01:00
2017-11-08 13:08:12 +01:00
2018-02-28 15:29:59 +01:00
2017-11-28 16:04:57 +01:00
2017-11-08 13:08:12 +01:00
2017-11-15 11:36:08 -08:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-21 15:57:07 -08:00
2017-11-02 11:10:55 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-02 11:10:55 +01:00
2017-11-08 13:08:12 +01:00
2018-02-07 11:39:58 +01:00
2017-11-08 13:08:12 +01:00
2017-11-02 11:10:55 +01:00
2018-02-28 15:29:59 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-21 15:57:07 -08:00
2017-11-08 13:08:12 +01:00
2018-02-28 15:29:59 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-02 11:10:55 +01:00
2017-12-18 10:28:31 +01:00
2017-11-21 15:57:07 -08:00
2017-11-15 13:46:33 -08:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-02 11:10:55 +01:00
2018-02-28 13:40:22 +01:00
2017-11-21 15:57:07 -08:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-28 15:32:33 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-21 15:57:07 -08:00
2018-02-28 13:46:03 +01:00
2018-02-28 15:29:59 +01:00
2017-11-08 13:08:12 +01:00
2018-01-09 16:45:17 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-02 11:10:55 +01:00
2017-11-21 15:57:07 -08:00
2018-02-28 15:29:59 +01:00
2017-11-08 13:08:12 +01:00
2017-11-21 15:57:07 -08:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2018-01-22 14:20:56 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2018-02-28 13:40:22 +01:00
2017-11-13 21:05:31 -08:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-21 15:57:07 -08:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-12-15 20:27:43 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-02 11:10:55 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-02 11:10:55 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-02 11:10:55 +01:00