diff options
author | Dmitry Baryshkov <[email protected]> | 2023-12-17 01:59:10 +0200 |
---|---|---|
committer | Dmitry Baryshkov <[email protected]> | 2023-12-19 02:06:16 +0200 |
commit | 6914968a0b52507bf19d85e5fb9e35272e17cd35 (patch) | |
tree | 7c1bd8914b5449a3236f5f2eb692ec54a9d53451 /scripts/generate_rust_analyzer.py | |
parent | 8a53e29fe05c56f643eaab285f224c09b9c3dd4c (diff) |
drm/bridge: properly refcount DT nodes in aux bridge drivers
The aux-bridge and aux-hpd-bridge drivers didn't call of_node_get() on
the device nodes further used for dev->of_node and platform data. When
bridge devices are released, the reference counts are decreased,
resulting in refcount underflow / use-after-free warnings. Get
corresponding refcounts during AUX bridge allocation.
Reported-by: Luca Weiss <[email protected]>
Fixes: 2a04739139b2 ("drm/bridge: add transparent bridge helper")
Fixes: 26f4bac3d884 ("drm/bridge: aux-hpd: Replace of_device.h with explicit include")
Reviewed-by: Neil Armstrong <[email protected]>
Signed-off-by: Dmitry Baryshkov <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Signed-off-by: Dmitry Baryshkov <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions