Thread (4 messages) 4 messages, 4 authors, 2022-10-28

Re: [PATCH] phy: qcom-qmp-combo: fix NULL-deref on runtime resume

From: Dmitry Baryshkov <hidden>
Date: 2022-10-26 19:44:01
Also in: linux-arm-msm, lkml, stable

On 26/10/2022 19:21, Johan Hovold wrote:
Commit fc64623637da ("phy: qcom-qmp-combo,usb: add support for separate
PCS_USB region") started treating the PCS_USB registers as potentially
separate from the PCS registers but used the wrong base when no PCS_USB
offset has been provided.

Fix the PCS_USB base used at runtime resume to prevent dereferencing a
NULL pointer on platforms that do not provide a PCS_USB offset (e.g.
SC7180).

Fixes: fc64623637da ("phy: qcom-qmp-combo,usb: add support for separate PCS_USB region")
Cc: stable@vger.kernel.org	# 5.20
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
---
  drivers/phy/qualcomm/phy-qcom-qmp-combo.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Dmitry Baryshkov <redacted>

-- 
With best wishes
Dmitry


-- 
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help