linux_dsm_epyc7002/drivers/gpu/drm/tidss
Daniel Vetter c792098baf drm/tidss: Drop explicit drm_mode_config_cleanup call
It's right above the drm_dev_put().

This is made possible by a preceeding patch which added a drmm_
cleanup action to drm_mode_config_init(), hence all we need to do to
ensure that drm_mode_config_cleanup() is run on final drm_device
cleanup is check the new error code for _init().

Aside: Another driver with a bit much devm_kzalloc, which should
probably use drmm_kzalloc instead ...

I'm pretty sure this one blows up already under KASAN because it's
using devm_drm_dev_init, and later on devm_kzalloc. Hence the memory
will get freed before the final drm_dev_put (all from the devres
code), but the cleanup in that final drm_dev_put will access the just
freed memory.

Unfortunately fixing this properly needs slightly more work, namely
drmm_ versions for all the drm objects (planes, crtc, ...), so that
the cleanup actually happens before even drmm_kzalloc would release
the underlying memory. Not quite there yet.

v2: Explain why this cleanup is possible (Laurent).

v3: Use drmm_mode_config_init() for more clarity (Sam, Thomas)

Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Jyri Sarha <jsarha@ti.com>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Cc: Jyri Sarha <jsarha@ti.com>
Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200323144950.3018436-42-daniel.vetter@ffwll.ch
2020-03-26 16:08:31 +01:00
..
Kconfig
Makefile
tidss_crtc.c drm/tidss: dispc: Fix broken plane positioning code 2020-02-28 14:48:58 +02:00
tidss_crtc.h drm/tidss: dispc: Fix broken plane positioning code 2020-02-28 14:48:58 +02:00
tidss_dispc_regs.h
tidss_dispc.c drm/tidss: Drop pointless static qualifier in dispc_find_csc() 2020-02-28 14:48:58 +02:00
tidss_dispc.h drm/tidss: dispc: Fix broken plane positioning code 2020-02-28 14:48:58 +02:00
tidss_drv.c drm/tidss: Drop explicit drm_mode_config_cleanup call 2020-03-26 16:08:31 +01:00
tidss_drv.h
tidss_encoder.c drm/tidss: Use drm_for_each_bridge_in_chain() 2020-02-28 14:48:58 +02:00
tidss_encoder.h
tidss_irq.c
tidss_irq.h
tidss_kms.c drm/tidss: Drop explicit drm_mode_config_cleanup call 2020-03-26 16:08:31 +01:00
tidss_kms.h drm/tidss: Drop explicit drm_mode_config_cleanup call 2020-03-26 16:08:31 +01:00
tidss_plane.c
tidss_plane.h
tidss_scale_coefs.c
tidss_scale_coefs.h