Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 230208c9 authored by Linus Walleij's avatar Linus Walleij Committed by Greg Kroah-Hartman
Browse files

power: supply: ab8500: Avoid NULL pointers



[ Upstream commit 5bcb5087c9dd3dca1ff0ebd8002c5313c9332b56 ]

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: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent df87af9a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment