diff options
author | Tomi Valkeinen <[email protected]> | 2020-04-15 12:20:06 +0300 |
---|---|---|
committer | Tomi Valkeinen <[email protected]> | 2020-04-20 10:07:35 +0300 |
commit | 9da67433f64eb89e5a7b47977507806c6ea026e7 (patch) | |
tree | 38fb5b37c3075b238e00bf387fe9c20dbecb0b88 /lib | |
parent | 7bfc1fec1af3e2f0194843855b0d49054fa42fd2 (diff) |
drm/tidss: fix crash related to accessing freed memory
tidss uses devm_kzalloc to allocate DRM plane, encoder and crtc objects.
This is not correct as the lifetime of those objects should be longer
than the underlying device's.
When unloading tidss module, the devm_kzalloc'ed objects have already
been freed when tidss_release() is called, and the driver will accesses
freed memory possibly causing a crash, a kernel WARN, or other undefined
behavior, and also KASAN will give a bug.
Signed-off-by: Tomi Valkeinen <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Acked-by: Daniel Vetter <[email protected]>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions