[PATCH 6.0 0754/1073] power: supply: fix null pointer dereferencing in power_supply_get_battery_info