Files
linux/drivers
Krzysztof Kozlowski da0bc89767 mfd: 88pm860x: Fix possible NULL pointer dereference on i2c_new_dummy error
commit 159ce52a6b 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
..
2013-12-08 07:29:25 -08:00
2013-05-17 14:31:05 -04:00
2014-04-03 12:01:05 -07:00
2014-04-26 17:15:34 -07:00
2014-03-06 21:30:14 -08:00
2014-04-14 06:42:18 -07:00
2014-02-22 12:41:27 -08:00
2014-02-20 11:06:11 -08:00
2014-02-13 13:48:03 -08:00
2014-04-03 12:01:05 -07:00
2013-12-20 07:45:11 -08:00