Re: [PATCH 3/9] serial: imx: Fix out-of-bounds access through DT alias

2018-02-20 Thread Geert Uytterhoeven
Hi Uwe, On Tue, Feb 20, 2018 at 11:31 AM, Uwe Kleine-König wrote: > On Tue, Feb 20, 2018 at 10:40:18AM +0100, Geert Uytterhoeven wrote: >> The imx_ports[] array is indexed using a value derived from the >> "serialN" alias in DT, which may lead to an out-of-bounds

Re: [PATCH 3/9] serial: imx: Fix out-of-bounds access through DT alias

2018-02-20 Thread Uwe Kleine-König
Hello Geert, On Tue, Feb 20, 2018 at 10:40:18AM +0100, Geert Uytterhoeven wrote: > The imx_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: 9206ab8a0350c3da ("serial: imx:

[PATCH 3/9] serial: imx: Fix out-of-bounds access through DT alias

2018-02-20 Thread Geert Uytterhoeven
The imx_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: 9206ab8a0350c3da ("serial: imx: Fix out-of-bounds access through DT alias") Signed-off-by: Geert Uytterhoeven