[PATCH v4] phy: qcom-qusb2: Fix NULL pointer dereference on early suspend

Vinod Koul vkoul at kernel.org
Tue Dec 23 09:33:53 PST 2025


On Fri, 19 Dec 2025 09:56:40 +0100, Loic Poulain wrote:
> Enabling runtime PM before attaching the QPHY instance as driver data
> can lead to a NULL pointer dereference in runtime PM callbacks that
> expect valid driver data. There is a small window where the suspend
> callback may run after PM runtime enabling and before runtime forbid.
> This causes a sporadic crash during boot:
> 
> ```
> Unable to handle kernel NULL pointer dereference at virtual address 00000000000000a1
> [...]
> CPU: 0 UID: 0 PID: 11 Comm: kworker/0:1 Not tainted 6.16.7+ #116 PREEMPT
> Workqueue: pm pm_runtime_work
> pstate: 20000005 (nzCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
> pc : qusb2_phy_runtime_suspend+0x14/0x1e0 [phy_qcom_qusb2]
> lr : pm_generic_runtime_suspend+0x2c/0x44
> [...]
> ```
> 
> [...]

Applied, thanks!

[1/1] phy: qcom-qusb2: Fix NULL pointer dereference on early suspend
      commit: 1ca52c0983c34fca506921791202ed5bdafd5306

Best regards,
-- 
~Vinod





More information about the linux-phy mailing list