diff options
author | Dmitry Baryshkov <dmitry.baryshkov@linaro.org> | 2023-12-17 02:59:10 +0300 |
---|---|---|
committer | Dmitry Baryshkov <dmitry.baryshkov@linaro.org> | 2023-12-19 03:06:16 +0300 |
commit | 6914968a0b52507bf19d85e5fb9e35272e17cd35 (patch) | |
tree | 7c1bd8914b5449a3236f5f2eb692ec54a9d53451 /include/drm | |
parent | 8a53e29fe05c56f643eaab285f224c09b9c3dd4c (diff) | |
download | linux-6914968a0b52507bf19d85e5fb9e35272e17cd35.tar.xz |
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 <luca.weiss@fairphone.com>
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 <neil.armstrong@linaro.org>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20231216235910.911958-1-dmitry.baryshkov@linaro.org
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Diffstat (limited to 'include/drm')
0 files changed, 0 insertions, 0 deletions