summaryrefslogtreecommitdiff
path: root/drivers/phy/qualcomm/phy-qcom-qmp-pcie-msm8996.c
diff options
context:
space:
mode:
authorJohan Hovold <johan+linaro@kernel.org>2022-09-16 12:23:35 +0200
committerVinod Koul <vkoul@kernel.org>2022-09-20 11:31:16 +0530
commita5d6b1ac56cbd6b5850a3a54e35f1cb71e8e8cdd (patch)
tree8259bacb3813cf30232db1b0ed1ca0f73dc78418 /drivers/phy/qualcomm/phy-qcom-qmp-pcie-msm8996.c
parentef74a97f0df8758efe4476b4645961286aa86f0d (diff)
downloadlwn-a5d6b1ac56cbd6b5850a3a54e35f1cb71e8e8cdd.tar.gz
lwn-a5d6b1ac56cbd6b5850a3a54e35f1cb71e8e8cdd.zip
phy: qcom-qmp-usb: fix memleak on probe deferral
Switch to using the device-managed of_iomap helper to avoid leaking memory on probe deferral and driver unbind. Note that this helper checks for already reserved regions and may fail if there are multiple devices claiming the same memory. Two bindings currently rely on overlapping mappings for the PCS region so fallback to non-exclusive mappings for those for now. Fixes: e78f3d15e115 ("phy: qcom-qmp: new qmp phy driver for qcom-chipsets") Signed-off-by: Johan Hovold <johan+linaro@kernel.org> Link: https://lore.kernel.org/r/20220916102340.11520-7-johan+linaro@kernel.org Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/phy/qualcomm/phy-qcom-qmp-pcie-msm8996.c')
0 files changed, 0 insertions, 0 deletions