Files
android_kernel_xiaomi_sm8450/include/linux/platform_data
Vincent Stehlé 0c08aaf873 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: dec38b5ce6 ("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>
2017-04-10 17:31:17 +01:00
..
2016-01-24 14:46:21 +00:00
2013-06-11 20:25:58 +01:00
2014-02-19 13:36:15 +09:00
2015-10-17 21:22:08 -07:00
2014-01-02 03:30:35 -05:00
2017-04-10 17:31:17 +01:00
2015-07-27 01:10:29 -07:00
2014-01-14 21:36:53 -08:00
2015-10-27 04:21:14 +01:00
2013-12-11 10:56:21 -05:00
2014-01-14 21:36:53 -08:00
2013-05-25 10:33:30 -04:00