power: supply: fix null pointer dereferencing in powersupplygetbatteryinfo
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 v5.10.163 by commit 5beadb55f4e36fafe5d6df5dcd5f85d803f3f134, it was introduced in version v5.0 by commit 3afb50d7125bcdbf71df843134e96ceffc78c8b8. For more details please see the references link.