diff options
author | Toby Chen <tobyc@nvidia.com> | 2023-03-17 03:51:26 +0300 |
---|---|---|
committer | Heiko Stuebner <heiko@sntech.de> | 2023-03-23 02:05:28 +0300 |
commit | b5af48eedcb53491c02ded55d5991e03d6da6dbf (patch) | |
tree | 50aa2338fe368d03776822ad6caa2733c18a740a /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | e88adb4ac27a37de4167150b8a6a736d40cf7018 (diff) | |
download | linux-b5af48eedcb53491c02ded55d5991e03d6da6dbf.tar.xz |
drm/rockchip: dw_hdmi: cleanup drm encoder during unbind
This fixes a use-after-free crash during rmmod.
The DRM encoder is embedded inside the larger rockchip_hdmi,
which is allocated with the component. The component memory
gets freed before the main drm device is destroyed. Fix it
by running encoder cleanup before tearing down its container.
Signed-off-by: Toby Chen <tobyc@nvidia.com>
[moved encoder cleanup above clk_disable, similar to bind-error-path]
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20230317005126.496-1-tobyc@nvidia.com
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions