summaryrefslogtreecommitdiff
path: root/drivers/soc/qcom
diff options
context:
space:
mode:
authorJohan Hovold <johan+linaro@kernel.org>2024-02-17 18:02:24 +0300
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>2024-02-23 18:00:56 +0300
commite5ca263508f7e9d2cf711edf3258d11ca087885c (patch)
tree3084c6c0188c02c757fb2946b4e440b55266c6a5 /drivers/soc/qcom
parent9ee485bdda68d6d3f5728cbe3150eb9013d7d22b (diff)
downloadlinux-e5ca263508f7e9d2cf711edf3258d11ca087885c.tar.xz
drm/bridge: aux-hpd: separate allocation and registration
Combining allocation and registration is an anti-pattern that should be avoided. Add two new functions for allocating and registering an dp-hpd bridge with a proper 'devm' prefix so that it is clear that these are device managed interfaces. devm_drm_dp_hpd_bridge_alloc() devm_drm_dp_hpd_bridge_add() The new interface will be used to fix a use-after-free bug in the Qualcomm PMIC GLINK driver and may prevent similar issues from being introduced elsewhere. The existing drm_dp_hpd_bridge_register() is reimplemented using the above and left in place for now. Signed-off-by: Johan Hovold <johan+linaro@kernel.org> Reviewed-by: Bjorn Andersson <andersson@kernel.org> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Link: https://patchwork.freedesktop.org/patch/msgid/20240217150228.5788-3-johan+linaro@kernel.org
Diffstat (limited to 'drivers/soc/qcom')
0 files changed, 0 insertions, 0 deletions