Patchwork drm/virtio: call drm_plane_cleanup() at destroy phase

login
register
mail settings
Submitter Gustavo F. Padovan
Date Dec. 12, 2016, 7:35 p.m.
Message ID <1481571330-13768-1-git-send-email-gustavo@padovan.org>
Download mbox | patch
Permalink /patch/9471119/
State New
Headers show

Comments

Gustavo F. Padovan - Dec. 12, 2016, 7:35 p.m.
From: Gustavo Padovan <gustavo.padovan@collabora.co.uk>

virtio was missing this call to clean up core plane usage.

Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
---
 drivers/gpu/drm/virtio/virtgpu_plane.c | 1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/drivers/gpu/drm/virtio/virtgpu_plane.c b/drivers/gpu/drm/virtio/virtgpu_plane.c
index cb75f06..05022ef 100644
--- a/drivers/gpu/drm/virtio/virtgpu_plane.c
+++ b/drivers/gpu/drm/virtio/virtgpu_plane.c
@@ -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);
 }