diff options
| author | Johan Hovold <[email protected]> | 2022-10-26 16:21:16 +0000 |
|---|---|---|
| committer | Vinod Koul <[email protected]> | 2022-10-28 12:55:50 +0000 |
| commit | 04948e757148f870a31f4887ea2239403f516c3c (patch) | |
| tree | ef4b4099901db890473c96e2d7ec27feddfcb327 /drivers/platform/x86/intel/pmt/class.c | |
| parent | phy: tegra: xusb: Fix crash during pad power on/down (diff) | |
| download | kernel-04948e757148f870a31f4887ea2239403f516c3c.tar.gz kernel-04948e757148f870a31f4887ea2239403f516c3c.zip | |
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: [email protected] # 5.20
Signed-off-by: Johan Hovold <[email protected]>
Reviewed-by: Dmitry Baryshkov <[email protected]>
Reviewed-by: Andrew Halaney <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'drivers/platform/x86/intel/pmt/class.c')
0 files changed, 0 insertions, 0 deletions
