power: supply: fix null pointer dereferencing in power_supply_get_battery_info
This is an automated ID intended to aid in discovery of potential security vulnerabilities. The actual impact and attack plausibility have not yet been proven. This ID is fixed in Linux Kernel version v6.0.16 by commit 279af90e65cbdb3e5c4519b0043324d7876bc5ec, it was introduced in version v5.0 by commit 3afb50d7125bcdbf71df843134e96ceffc78c8b8. For more details please see the references link.