summaryrefslogtreecommitdiff
path: root/drivers/phy/tegra
diff options
context:
space:
mode:
authorJohan Hovold <johan+linaro@kernel.org>2022-10-26 19:21:16 +0300
committerVinod Koul <vkoul@kernel.org>2022-10-28 15:55:50 +0300
commit04948e757148f870a31f4887ea2239403f516c3c (patch)
treeef4b4099901db890473c96e2d7ec27feddfcb327 /drivers/phy/tegra
parent2a4ea83bb8e54986703187edce59c9130a75eb26 (diff)
downloadlinux-04948e757148f870a31f4887ea2239403f516c3c.tar.xz
phy: qcom-qmp-combo: fix NULL-deref on runtime resume
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> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Reviewed-by: Andrew Halaney <ahalaney@redhat.com> Link: https://lore.kernel.org/r/20221026162116.26462-1-johan+linaro@kernel.org Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/phy/tegra')
0 files changed, 0 insertions, 0 deletions