linux_dsm_epyc7002/drivers/gpu/drm/udl
Dave Airlie 9b39b01303 drm/udl: add a release method and delay modeset teardown
If we unplug a udl device, the usb callback with deinit the
mode_config struct, however userspace will still have an open
file descriptor and a framebuffer on that device. When userspace
closes the fd, we'll oops because it'll try and look stuff up
in the object idr which we've destroyed.

This punts destroying the mode objects until release time instead.

Cc: stable@vger.kernel.org
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190405031715.5959-2-airlied@gmail.com
2019-04-08 16:20:02 +10:00
..
Kconfig drm/udl: make fbdev support really optional 2016-07-18 09:11:40 +02:00
Makefile drm/udl: remove unneeded -Iinclude/drm compiler flag 2017-05-18 07:13:53 +02:00
udl_connector.c drm/udl: Refactor edid retrieving in UDL driver (v2) 2019-03-25 15:58:15 +10:00
udl_connector.h drm/udl: Fixed problem with UDL adpater reconnection 2017-10-16 15:36:02 -04:00
udl_dmabuf.c dma-buf: remove kmap_atomic interface 2018-06-20 15:59:34 +02:00
udl_drv.c drm/udl: add a release method and delay modeset teardown 2019-04-08 16:20:02 +10:00
udl_drv.h drm/udl: add a release method and delay modeset teardown 2019-04-08 16:20:02 +10:00
udl_encoder.c drm/udl: removed optional dummy encoder mode_fixup function. 2016-02-16 15:30:12 +01:00
udl_fb.c drm: udl: Destroy framebuffer only if it was initialized 2018-09-10 16:02:51 -04:00
udl_gem.c drm/udl: use drm_gem_object_put_unlocked. 2019-03-18 10:10:46 +10:00
udl_main.c drm/udl: add a release method and delay modeset teardown 2019-04-08 16:20:02 +10:00
udl_modeset.c udl-kms: dont spam the syslog with debug messages 2018-07-31 08:11:12 +10:00
udl_transfer.c udl-kms: avoid prefetch 2018-07-31 08:11:12 +10:00