u-boot/drivers/power/regulator
Patrick Delaunay 2d69b08618 power: regulator: gpio-regulator: protect count value
Update the size of states_array to avoid overflow for
dev_pdata->voltages[j] and dev_pdata->states[j].

As the size of array is GPIO_REGULATOR_MAX_STATES, the size of
states_array is limited by GPIO_REGULATOR_MAX_STATES * 2 = 4
instead of 8 previously.

The value of the "count" variable is limited by the third parameter of
fdtdec_get_int_array_count.

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2020-10-23 13:33:06 -04:00
..
act8846.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
as3722_regulator.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
bd71837.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
da9063.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
fan53555.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
fixed.c power: Tidy up inclusion of regulator_common.h 2020-08-03 22:19:54 -04:00
gpio-regulator.c power: regulator: gpio-regulator: protect count value 2020-10-23 13:33:06 -04:00
Kconfig power: regulator: add driver for Dialog DA9063 PMIC 2020-01-27 19:54:20 -05:00
lp873x_regulator.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
lp87565_regulator.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
Makefile power: regulator: add driver for Dialog DA9063 PMIC 2020-01-27 19:54:20 -05:00
max77686.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
palmas_regulator.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pbias_regulator.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
pfuze100.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
pwm_regulator.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
regulator-uclass.c regulator: fix: enable gpio when requested 2020-06-15 16:37:01 -04:00
regulator_common.c power: Tidy up inclusion of regulator_common.h 2020-08-03 22:19:54 -04:00
regulator_common.h power: Tidy up inclusion of regulator_common.h 2020-08-03 22:19:54 -04:00
rk8xx.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
s2mps11_regulator.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
s5m8767.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sandbox.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
stm32-vrefbuf.c power: regulator: stm32: vrefbuf: fix a possible overshoot when re-enabling 2020-07-07 16:01:23 +02:00
stpmic1.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
tps62360_regulator.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
tps65090_regulator.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
tps65910_regulator.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
tps65941_regulator.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00