9da67433f6
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 <tomi.valkeinen@ti.com> Link: https://patchwork.freedesktop.org/patch/msgid/20200415092006.26675-1-tomi.valkeinen@ti.com Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
tidss_crtc.c | ||
tidss_crtc.h | ||
tidss_dispc_regs.h | ||
tidss_dispc.c | ||
tidss_dispc.h | ||
tidss_drv.c | ||
tidss_drv.h | ||
tidss_encoder.c | ||
tidss_encoder.h | ||
tidss_irq.c | ||
tidss_irq.h | ||
tidss_kms.c | ||
tidss_kms.h | ||
tidss_plane.c | ||
tidss_plane.h | ||
tidss_scale_coefs.c | ||
tidss_scale_coefs.h |