u-boot/drivers/gpio
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
..
74x164_gpio.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
adi_gpio2.c common: Drop linux/bug.h from common header 2020-05-18 21:19:23 -04:00
altera_pio.c treewide: convert devfdt_get_addr() to dev_read_addr() 2020-07-25 14:46:57 -06:00
at91_gpio.c gpio: at91: use dev_read_addr() to get base address 2020-08-22 08:51:44 -06:00
atmel_pio4.c treewide: convert devfdt_get_addr() to dev_read_addr() 2020-07-25 14:46:57 -06:00
axp_gpio.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
bcm2835_gpio.c treewide: convert devfdt_get_addr() to dev_read_addr() 2020-07-25 14:46:57 -06:00
bcm6345_gpio.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
cortina_gpio.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
da8xx_gpio.c treewide: convert devfdt_get_addr() to dev_read_addr() 2020-07-25 14:46:57 -06:00
da8xx_gpio.h dm: gpio: Allow control of GPIO uclass in SPL 2019-12-15 08:52:29 +08:00
db8500_gpio.c GPIO: Correct doc typo "confguration" -> "configuration" 2017-02-08 16:24:29 -05:00
dwapb_gpio.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
gpio-rcar.c treewide: convert (void *)devfdt_get_addr() to dev_read_addr_ptr() 2020-07-25 14:46:57 -06:00
gpio-rza1.c treewide: convert devfdt_get_addr() to dev_read_addr() 2020-07-25 14:46:57 -06:00
gpio-uclass.c drivers: gpio: Add a managed API to get a GPIO from the device-tree 2020-09-30 11:55:22 -04:00
gpio-uniphier.c treewide: convert devfdt_get_addr() to dev_read_addr() 2020-07-25 14:46:57 -06:00
hi6220_gpio.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
hsdk-creg-gpio.c treewide: convert devfdt_get_addr_ptr() to dev_read_addr_ptr() 2020-08-22 08:53:37 -06:00
imx_rgpio2p.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
intel_broadwell_gpio.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
intel_gpio.c x86: gpio: Add support for obtaining ACPI info for a GPIO 2020-07-17 14:32:24 +08:00
intel_ich6_gpio.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
iproc_gpio.c drivers: gpio: add broadcom iproc gpio driver support 2020-07-29 10:37:11 -04:00
Kconfig xilinx: kconfig: Change Kconfig dependencies for Xilinx drivers 2020-08-20 09:46:55 +02:00
kona_gpio.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
kw_gpio.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
lpc32xx_gpio.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Makefile gpio: octeon_gpio: Add GPIO controller driver for Octeon 2020-08-03 21:11:41 +02:00
mpc8xxx_gpio.c gpio: remove the open_drain API and ops 2020-04-16 23:06:54 -04:00
mpc83xx_gpio.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
mpc83xx_spisel_boot.c gpio/mpc83xx_spisel_boot.c: gpio driver for SPISEL_BOOT signal 2020-03-31 10:06:52 -04:00
mscc_sgpio.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
msm_gpio.c msm_gpio: Add support for Qualcomm IPQ40xx 2020-07-29 08:43:40 -04:00
mt7621_gpio.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
mvebu_gpio.c treewide: convert (void *)devfdt_get_addr() to dev_read_addr_ptr() 2020-07-25 14:46:57 -06:00
mvgpio.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
mvgpio.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
mvmfp.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
mxc_gpio.c For 2020.10 2020-08-04 11:11:02 -04:00
mxs_gpio.c drivers: avoid using aliases on drivers when OF_PLATDATA is enabled 2020-07-28 19:30:39 -06:00
nx_gpio.c gpio: add nexell driver 2020-07-29 08:43:40 -04:00
octeon_gpio.c gpio: octeon_gpio: Add GPIO controller driver for Octeon 2020-08-03 21:11:41 +02:00
omap_gpio.c treewide: convert devfdt_get_addr() to dev_read_addr() 2020-07-25 14:46:57 -06:00
pca953x.c command: Remove the cmd_tbl_t typedef 2020-05-18 18:36:55 -04:00
pca953x_gpio.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
pca9698.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
pcf8575_gpio.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
pic32_gpio.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
pm8916_gpio.c treewide: convert devfdt_get_addr() to dev_read_addr() 2020-07-25 14:46:57 -06:00
rk_gpio.c drivers: rename drivers to match compatible string 2020-07-09 18:57:22 -06:00
s5p_gpio.c treewide: convert devfdt_get_addr() to dev_read_addr() 2020-07-25 14:46:57 -06:00
sandbox.c gpio: Add a method to convert a GPIO to ACPI 2020-07-17 14:32:24 +08:00
sh_pfc.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
sifive-gpio.c treewide: convert devfdt_get_addr() to dev_read_addr() 2020-07-25 14:46:57 -06:00
spear_gpio.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
stm32_gpio.c gpio: stm32: check result of ofnode_phandle_args 2020-10-02 15:05:14 +02:00
sunxi_gpio.c treewide: convert (void *)devfdt_get_addr() to dev_read_addr_ptr() 2020-07-25 14:46:57 -06:00
tca642x.c command: Remove the cmd_tbl_t typedef 2020-05-18 18:36:55 -04:00
tegra186_gpio.c gpio: Remove DM_FLAG_PRE_RELOC flag in various drivers 2018-11-14 09:16:28 -08:00
tegra186_gpio_priv.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
tegra_gpio.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
vybrid_gpio.c treewide: convert devfdt_get_addr() to dev_read_addr() 2020-07-25 14:46:57 -06:00
xilinx_gpio.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
zynq_gpio.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00