RE: [PATCH 2/2] gpio: stm32: check result of ofnode_phandle_args

2020-10-02 Thread Patrick DELAUNAY
Hi, > From: Patrick DELAUNAY > > Add test on the size of ofnode_phandle_args result to avoid access to > uninitialized > elements in args[] field. > > This patch avoids the issue when gpio-ranges cell size is not 3 as expected, > for > example: > gpio-ranges = <&pinctrl 0>; > instead of

Re: [PATCH 2/2] gpio: stm32: check result of ofnode_phandle_args

2020-10-02 Thread Patrice CHOTARD
Hi Patrick On 9/9/20 6:28 PM, Patrick Delaunay wrote: > Add test on the size of ofnode_phandle_args result to avoid access > to uninitialized elements in args[] field. > > This patch avoids the issue when gpio-ranges cell size is not 3 as > expected, for example: > gpio-ranges = <&pinctrl 0>

[PATCH 2/2] gpio: stm32: check result of ofnode_phandle_args

2020-09-09 Thread Patrick Delaunay
Add test on the size of ofnode_phandle_args result to avoid access to uninitialized elements in args[] field. This patch avoids the issue when gpio-ranges cell size is not 3 as expected, for example: gpio-ranges = <&pinctrl 0>; instead of gpio-ranges = <&pinctrl 0 112 16>; Signed-