Files
kernel_amazon_mt8127-common/drivers/mfd
Krzysztof Kozlowski da0bc89767 mfd: 88pm860x: Fix possible NULL pointer dereference on i2c_new_dummy error
commit 159ce52a6b777fc82fa0b51c7440e25f9e4c6feb upstream.

During probe the driver allocates dummy I2C device for companion chip
with i2c_new_dummy() but it does not check the return value of this call.

In case of error (i2c_new_device(): memory allocation failure or I2C
address cannot be used) this function returns NULL which is later used
by regmap_init_i2c().

If i2c_new_dummy() fails for companion device, fail also the probe for
main MFD driver.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-05-06 07:55:27 -07:00
..
2012-11-28 12:22:27 -08:00
2013-04-05 11:20:14 +02:00
2012-11-28 12:22:27 -08:00
2013-04-05 11:20:13 +02:00
2012-11-28 12:22:27 -08:00
2013-04-08 17:25:28 +02:00
2012-11-28 12:22:27 -08:00
2012-11-28 12:20:19 -08:00
2012-11-28 12:22:27 -08:00
2012-11-28 12:22:27 -08:00
2012-11-28 12:22:27 -08:00
2012-11-28 12:22:27 -08:00
2012-11-28 12:22:27 -08:00
2012-11-28 12:22:27 -08:00
2013-04-19 00:45:20 +02:00
2013-02-14 00:22:59 +01:00
2013-04-19 18:29:18 +02:00
2013-04-19 18:29:18 +02:00
2013-04-19 18:40:05 +02:00
2012-11-28 12:22:27 -08:00
2013-04-08 17:28:29 +02:00
2013-04-09 12:18:16 +02:00
2013-04-08 17:25:29 +02:00
2012-11-28 12:22:27 -08:00
2012-11-28 12:22:27 -08:00
2012-11-28 12:22:27 -08:00
2012-11-28 12:22:27 -08:00
2012-11-28 12:22:27 -08:00
2013-02-14 00:22:54 +01:00
2012-11-28 12:22:27 -08:00
2013-04-08 17:25:27 +02:00
2012-11-28 12:22:27 -08:00
2012-11-28 12:20:19 -08:00