aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mm/debug.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2021-01-15 13:15:24 +0000
committerSebastian Reichel <sebastian.reichel@collabora.com>2021-01-15 15:15:30 +0100
commit39196cfe10dd2b46ee28b44abbc0db4f4cb7822f (patch)
treebbda4134d3e9b96ae1a15263d80d29c7f59ef618 /mm/debug.c
parentpower: supply: cpcap-battery: constify psy_desc (diff)
downloadwireguard-linux-39196cfe10dd2b46ee28b44abbc0db4f4cb7822f.tar.xz
wireguard-linux-39196cfe10dd2b46ee28b44abbc0db4f4cb7822f.zip
power: supply: cpcap-charger: Fix power_supply_put on null battery pointer
Currently if the pointer battery is null there is a null pointer dereference on the call to power_supply_put. Fix this by only performing the put if battery is not null. Addresses-Coverity: ("Dereference after null check") Fixes: 4bff91bb3231 ("power: supply: cpcap-charger: Fix missing power_supply_put()") Signed-off-by: Colin Ian King <colin.king@canonical.com> Acked-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'mm/debug.c')
0 files changed, 0 insertions, 0 deletions