diff options
author | Paul Cercueil <paul@crapouillou.net> | 2021-03-27 11:57:42 +0000 |
---|---|---|
committer | Paul Cercueil <paul@crapouillou.net> | 2021-03-29 16:47:12 +0100 |
commit | e488b1023a4a4eab15b905871cf8e81f00336ed7 (patch) | |
tree | bee4fd623692ff817706b44d4474830a1e459a4b /include | |
parent | c7b04342b41d314433494fd56cd378fa544a630f (diff) | |
download | linux-stable-e488b1023a4a4eab15b905871cf8e81f00336ed7.tar.gz |
drm/ingenic: Register devm action to cleanup encoders
Since the encoders have been devm-allocated, they will be freed way
before drm_mode_config_cleanup() is called. To avoid use-after-free
conditions, we then must ensure that drm_encoder_cleanup() is called
before the encoders are freed.
v2: Use the new __drmm_simple_encoder_alloc() function
v3: Use the new drmm_plain_simple_encoder_alloc() macro
v4: Use drmm_plain_encoder_alloc() macro
Fixes: c369cb27c267 ("drm/ingenic: Support multiple panels/bridges")
Cc: <stable@vger.kernel.org> # 5.8+
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210327115742.18986-4-paul@crapouillou.net
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions