A race condition in the Linux kernel wm97xx power supply driver can cause a NULL pointer dereference. This occurs because an interrupt may trigger use of an uninitialized power_supply handle between requesting an IRQ and registering the power_supply. The issue is fixed by reordering operations to request the IRQ only after the power_supply handle is registered.