Patrick Delaunay
cb08e84d68
gpio: stm32: check result of ofnode_phandle_args
...
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-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
2020-10-02 15:05:14 +02:00
..
2020-02-05 19:33:46 -07:00
2020-05-18 21:19:23 -04:00
2020-07-25 14:46:57 -06:00
2020-08-22 08:51:44 -06:00
2020-07-25 14:46:57 -06:00
2018-05-07 09:34:12 -04:00
2020-07-25 14:46:57 -06:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-07-25 14:46:57 -06:00
2019-12-15 08:52:29 +08:00
2017-02-08 16:24:29 -05:00
2020-05-18 21:19:23 -04:00
2020-07-25 14:46:57 -06:00
2020-07-25 14:46:57 -06:00
2020-09-30 11:55:22 -04:00
2020-07-25 14:46:57 -06:00
2020-05-18 21:19:23 -04:00
2020-08-22 08:53:37 -06:00
2018-05-07 09:34:12 -04:00
2020-05-18 21:19:18 -04:00
2020-07-17 14:32:24 +08:00
2020-05-18 21:19:18 -04:00
2020-07-29 10:37:11 -04:00
2020-08-20 09:46:55 +02:00
2020-02-05 19:33:46 -07:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2020-08-03 21:11:41 +02:00
2020-04-16 23:06:54 -04:00
2020-02-05 19:33:46 -07:00
2020-03-31 10:06:52 -04:00
2020-05-18 21:19:23 -04:00
2020-07-29 08:43:40 -04:00
2020-05-18 21:19:23 -04:00
2020-07-25 14:46:57 -06:00
2020-02-05 19:33:46 -07:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2020-08-04 11:11:02 -04:00
2020-07-28 19:30:39 -06:00
2020-07-29 08:43:40 -04:00
2020-08-03 21:11:41 +02:00
2020-07-25 14:46:57 -06:00
2020-05-18 21:19:23 -04:00
2020-05-18 18:36:55 -04:00
2020-02-05 19:33:46 -07:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-07-25 14:46:57 -06:00
2020-07-09 18:57:22 -06:00
2020-07-25 14:46:57 -06:00
2020-07-17 14:32:24 +08:00
2020-05-18 21:19:23 -04:00
2020-07-25 14:46:57 -06:00
2020-02-05 19:33:46 -07:00
2020-10-02 15:05:14 +02:00
2020-07-25 14:46:57 -06:00
2020-05-18 18:36:55 -04:00
2020-05-18 21:19:23 -04:00
2018-11-14 09:16:28 -08:00
2020-05-18 21:19:18 -04:00
2020-07-25 14:46:57 -06:00
2020-05-18 21:19:18 -04:00
2020-05-18 21:19:23 -04:00