aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/intel/pmt/crashlog.c
diff options
context:
space:
mode:
authorLinus Walleij <[email protected]>2022-04-24 22:13:01 +0000
committerSebastian Reichel <[email protected]>2022-05-03 15:00:37 +0000
commite56a4be2843c95c08cf8421dc1f8e880cafbaf91 (patch)
treecc6eb7cc4305790d3eb1b238304e2b8a2a87b368 /drivers/platform/x86/intel/pmt/crashlog.c
parentLinux 5.18-rc5 (diff)
downloadkernel-e56a4be2843c95c08cf8421dc1f8e880cafbaf91.tar.gz
kernel-e56a4be2843c95c08cf8421dc1f8e880cafbaf91.zip
power: supply: core: Initialize struct to zero
As we rely on pointers in the battery info to be zero-initialized such as in the helper function power_supply_supports_vbat2ri() we certainly need to allocate the struct power_supply_battery_info with kzalloc() as well. Else this happens: Unable to handle kernel paging request at virtual address 00280000 (...) PC is at power_supply_vbat2ri+0x50/0x12c LR is at ab8500_fg_battery_resistance+0x34/0x108 Fixes: e9e7d165b4b0 ("power: supply: Support VBAT-to-Ri lookup tables") Signed-off-by: Linus Walleij <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'drivers/platform/x86/intel/pmt/crashlog.c')
0 files changed, 0 insertions, 0 deletions