linux-stable/drivers/power
Linus Walleij 14016c1728 power: supply: ab8500: Avoid NULL pointers
[ Upstream commit 5bcb5087c9 ]

Sometimes the code will crash because we haven't enabled
AC or USB charging and thus not created the corresponding
psy device. Fix it by checking that it is there before
notifying.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-07-20 16:05:46 +02:00
..
reset power: reset: at91-sama5d2_shdwc: fix wkupdbc mask 2021-03-04 11:37:57 +01:00
supply power: supply: ab8500: Avoid NULL pointers 2021-07-20 16:05:46 +02:00
Kconfig PM: AVS: Drop the avs directory and the corresponding Kconfig 2020-10-22 18:39:32 +02:00
Makefile PM: AVS: Drop the avs directory and the corresponding Kconfig 2020-10-22 18:39:32 +02:00