diff options
author | Patrick Delaunay <patrick.delaunay@st.com> | 2020-09-09 18:28:34 +0200 |
---|---|---|
committer | Patrick Delaunay <patrick.delaunay@st.com> | 2020-10-02 15:05:14 +0200 |
commit | cb08e84d68ca64608fddb1ceec611f520e47b67e (patch) | |
tree | f01d73c72b38ea5bd27ff5deda3bfb311571f923 /common/avb_verify.c | |
parent | 15c8cbfc7482c07db0ba5307f31ea2423399fba9 (diff) | |
download | u-boot-cb08e84d68ca64608fddb1ceec611f520e47b67e.tar.gz u-boot-cb08e84d68ca64608fddb1ceec611f520e47b67e.tar.xz u-boot-cb08e84d68ca64608fddb1ceec611f520e47b67e.zip |
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>
Diffstat (limited to 'common/avb_verify.c')
0 files changed, 0 insertions, 0 deletions