diff options
author | Johan Hovold <[email protected]> | 2024-02-17 16:02:24 +0100 |
---|---|---|
committer | Dmitry Baryshkov <[email protected]> | 2024-02-23 17:00:56 +0200 |
commit | e5ca263508f7e9d2cf711edf3258d11ca087885c (patch) | |
tree | 3084c6c0188c02c757fb2946b4e440b55266c6a5 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | 9ee485bdda68d6d3f5728cbe3150eb9013d7d22b (diff) |
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 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions