public inbox for linux-phy@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Fix the NULL pointer deference issue in QMP USB drivers
@ 2025-08-25 11:52 Kathiravan Thirumoorthy
  2025-08-25 11:52 ` [PATCH 1/3] phy: qcom-qmp-usb: fix NULL pointer dereference in PM callbacks Kathiravan Thirumoorthy
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Kathiravan Thirumoorthy @ 2025-08-25 11:52 UTC (permalink / raw)
  To: Vinod Koul, Kishon Vijay Abraham I, Dmitry Baryshkov,
	Bjorn Andersson, Konrad Dybcio
  Cc: linux-arm-msm, linux-phy, linux-kernel, Kathiravan Thirumoorthy,
	Poovendhan Selvaraj, stable

In the suspend / resume callbacks, qmp->phy could be NULL because PHY is
created after the PM ops are enabled, which lead to the NULL pointer
deference.

Internally issue is reported on qcom-qmp-usb driver. Since the fix is
applicable to legacy and usbc drivers, incoporated the fixes for those
driver as well.

qcom-qmp-usb-legacy and qcom-qmp-usbc drivers are splitted out from
qcom-qmp-usb driver in v6.6 and v6.9 respectively. So splitted the
changes into 3, for ease of backporting.

Signed-off-by: Kathiravan Thirumoorthy <kathiravan.thirumoorthy@oss.qualcomm.com>
---
Poovendhan Selvaraj (3):
      phy: qcom-qmp-usb: fix NULL pointer dereference in PM callbacks
      phy: qcom-qmp-usb-legacy: fix NULL pointer dereference in PM callbacks
      phy: qcom-qmp-usbc: fix NULL pointer dereference in PM callbacks

 drivers/phy/qualcomm/phy-qcom-qmp-usb-legacy.c | 4 ++--
 drivers/phy/qualcomm/phy-qcom-qmp-usb.c        | 4 ++--
 drivers/phy/qualcomm/phy-qcom-qmp-usbc.c       | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)
---
base-commit: 0f4c93f7eb861acab537dbe94441817a270537bf
change-id: 20250825-qmp-null-deref-on-pm-fd98a91c775b

Best regards,
-- 
Kathiravan Thirumoorthy <kathiravan.thirumoorthy@oss.qualcomm.com>


-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-09-09 10:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-25 11:52 [PATCH 0/3] Fix the NULL pointer deference issue in QMP USB drivers Kathiravan Thirumoorthy
2025-08-25 11:52 ` [PATCH 1/3] phy: qcom-qmp-usb: fix NULL pointer dereference in PM callbacks Kathiravan Thirumoorthy
2025-08-26  2:50   ` Bjorn Andersson
2025-08-26  8:39     ` Kathiravan Thirumoorthy
2025-09-01 13:54   ` Vinod Koul
2025-09-09  8:34     ` Kathiravan Thirumoorthy
2025-08-25 11:52 ` [PATCH 2/3] phy: qcom-qmp-usb-legacy: " Kathiravan Thirumoorthy
2025-08-25 11:52 ` [PATCH 3/3] phy: qcom-qmp-usbc: " Kathiravan Thirumoorthy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox