aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/regulator
diff options
context:
space:
mode:
authorVincent Stehlé <vincent.stehle@laposte.net>2017-04-09 22:05:05 +0200
committerMark Brown <broonie@kernel.org>2017-04-10 17:31:17 +0100
commit0c08aaf873174c95e674cf21ffcd041c589d2e5b (patch)
treec55f79b5cce55dd49c6147ceac0fc9b7978be4d2 /include/linux/regulator
parentMerge remote-tracking branches 'regulator/topic/tps65086' and 'regulator/topic/twl' into regulator-next (diff)
downloadlinux-dev-0c08aaf873174c95e674cf21ffcd041c589d2e5b.tar.xz
linux-dev-0c08aaf873174c95e674cf21ffcd041c589d2e5b.zip
regulator: isl9305: fix array size
ISL9305_MAX_REGULATOR is the last index used to access the init_data[] array, so we need to add one to this last index to obtain the necessary array size. This fixes the following smatch error: drivers/regulator/isl9305.c:160 isl9305_i2c_probe() error: buffer overflow 'pdata->init_data' 3 <= 3 Fixes: dec38b5ce6a9edb4 ("regulator: isl9305: Add Intersil ISL9305/H driver") Signed-off-by: Vincent Stehlé <vincent.stehle@laposte.net> Cc: Mark Brown <broonie@kernel.org> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/regulator')
0 files changed, 0 insertions, 0 deletions