In the Linux kernel, the following vulnerability has been resolved:
powercap: dtpmcpu: Fix NULL pointer dereference in getpdpoweruw()
The getpdpoweruw() function can crash with a NULL pointer dereference when emcpuget() returns NULL. This occurs when a CPU becomes impossible during runtime, causing getcpudevice() to return NULL, which propagates through emcpuget() and leads to a crash when emspan_cpus() dereferences the NULL pointer.
Add a NULL check after emcpuget() and return 0 if unavailable, matching the existing fallback behavior in _dtpmcpu_setup().
[ rjw: Drop an excess empty code line ]