Files
linux/include/linux
Vincent Stehlé 23e4e7b49c regulator: isl9305: fix array size
[ Upstream commit 0c08aaf873174c95e674cf21ffcd041c589d2e5b ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-03-22 09:23:25 +01:00
..
2016-08-20 18:09:25 +02:00
2016-03-09 15:34:52 -08:00
2017-10-08 10:14:18 +02:00
2015-11-07 10:40:47 -07:00
2017-06-14 13:16:23 +02:00
2018-01-17 09:35:33 +01:00
2017-08-06 19:19:42 -07:00
2017-05-14 13:32:59 +02:00
2017-07-15 11:57:44 +02:00
2015-10-30 01:47:27 -04:00
2018-01-17 09:35:30 +01:00
2017-08-06 19:19:42 -07:00
2016-04-20 15:42:02 +09:00
2016-10-28 03:01:30 -04:00
2015-11-23 09:44:58 +01:00
2017-06-26 07:13:11 +02:00
2016-03-03 15:07:28 -08:00
2015-11-06 17:50:42 -08:00
2016-12-08 07:15:24 +01:00
2017-08-24 17:02:36 -07:00
2016-09-30 10:18:37 +02:00
2018-01-31 12:06:13 +01:00
2016-04-12 09:08:35 -07:00
2016-06-01 12:15:52 -07:00
2015-11-23 09:44:58 +01:00
2015-12-13 14:30:59 -08:00
2015-11-13 20:34:33 -05:00