In the Linux kernel, the following vulnerability has been resolved: power: supply: cpcap-charger: Fix null check for powersupplygetbyname In the cpcapusbdetect() function, the powersupplygetbyname() function may return NULL
instead of an error pointer. To prevent potential null pointer dereferences, Added a null check.