drm/virtio: call drm_plane_cleanup() at destroy phase
authorGustavo Padovan <gustavo.padovan@collabora.co.uk>
Wed, 15 Feb 2017 18:00:08 +0000 (16:00 -0200)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 16 Feb 2017 15:34:47 +0000 (16:34 +0100)
virtio was missing this call to clean up core plane usage.

Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20170215180009.7091-1-gustavo@padovan.org
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
drivers/gpu/drm/virtio/virtgpu_plane.c

index 11288ffa4af68fc5eb9557026d9a511c6ea1a63c..1ff9c64c9ec068f97ce54f9eaba6bf0bfde4ec62 100644 (file)
@@ -44,6 +44,7 @@ static const uint32_t virtio_gpu_cursor_formats[] = {
 
 static void virtio_gpu_plane_destroy(struct drm_plane *plane)
 {
+       drm_plane_cleanup(plane);
        kfree(plane);
 }