linux_dsm_epyc7002/drivers/gpu/drm/xen
Daniel Vetter 6f365e561d drm: Set final_kfree in drm_dev_alloc
I also did a full review of all callers, and only the xen driver
forgot to call drm_dev_put in the failure path. Fix that up too.

v2: I noticed that xen has a drm_driver.release hook, and uses
drm_dev_alloc(). We need to remove the kfree from
xen_drm_drv_release().

bochs also has a release hook, but leaked the drm_device ever since

commit 0a6659bdc5
Author: Gerd Hoffmann <kraxel@redhat.com>
Date:   Tue Dec 17 18:04:46 2013 +0100

    drm/bochs: new driver

This patch here fixes that leak.

Same for virtio, started leaking with

commit b1df3a2b24
Author: Gerd Hoffmann <kraxel@redhat.com>
Date:   Tue Feb 11 14:58:04 2020 +0100

    drm/virtio: add drm_driver.release callback.

Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Cc: xen-devel@lists.xenproject.org
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Maxime Ripard <mripard@kernel.org>
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Cc: xen-devel@lists.xenproject.org
Link: https://patchwork.freedesktop.org/patch/msgid/20200323144950.3018436-5-daniel.vetter@ffwll.ch
2020-03-26 14:49:37 +01:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile drm/xen-front: Use Xen common shared buffer implementation 2018-12-18 12:16:13 -05:00
xen_drm_front_cfg.c drm/xen: drop use of drmP.h 2019-07-15 18:11:30 +02:00
xen_drm_front_cfg.h
xen_drm_front_conn.c drm/xen: drop use of drmP.h 2019-07-15 18:11:30 +02:00
xen_drm_front_conn.h drm/xen: drop use of drmP.h 2019-07-15 18:11:30 +02:00
xen_drm_front_evtchnl.c drm/xen: drop use of drmP.h 2019-07-15 18:11:30 +02:00
xen_drm_front_evtchnl.h
xen_drm_front_gem.c drm/xen: drop use of drmP.h 2019-07-15 18:11:30 +02:00
xen_drm_front_gem.h drm/xen: drop use of drmP.h 2019-07-15 18:11:30 +02:00
xen_drm_front_kms.c drm/xen: Explicitly disable automatic sending of vblank event 2020-01-30 09:00:51 +01:00
xen_drm_front_kms.h
xen_drm_front.c drm: Set final_kfree in drm_dev_alloc 2020-03-26 14:49:37 +01:00
xen_drm_front.h drm/xen: drop use of drmP.h 2019-07-15 18:11:30 +02:00