aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/cdns3/cdns3-starfive.c
diff options
context:
space:
mode:
authorJohan Hovold <[email protected]>2024-02-17 15:02:24 +0000
committerDmitry Baryshkov <[email protected]>2024-02-23 15:00:56 +0000
commite5ca263508f7e9d2cf711edf3258d11ca087885c (patch)
tree3084c6c0188c02c757fb2946b4e440b55266c6a5 /drivers/usb/cdns3/cdns3-starfive.c
parentdrm/bridge: aux-hpd: fix OF node leaks (diff)
downloadkernel-e5ca263508f7e9d2cf711edf3258d11ca087885c.tar.gz
kernel-e5ca263508f7e9d2cf711edf3258d11ca087885c.zip
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 <[email protected]> Reviewed-by: Bjorn Andersson <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Signed-off-by: Dmitry Baryshkov <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/usb/cdns3/cdns3-starfive.c')
0 files changed, 0 insertions, 0 deletions