drm/virtio: call drm_plane_cleanup() at destroy phase
diff mbox

Message ID 20170215180009.7091-1-gustavo@padovan.org
State New
Headers show

Commit Message

Gustavo Padovan Feb. 15, 2017, 6 p.m. UTC
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(+)

Comments

Gerd Hoffmann Feb. 16, 2017, 3:39 p.m. UTC | #1
On Mi, 2017-02-15 at 16:00 -0200, Gustavo Padovan wrote:
> 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(+)
> 
> diff --git a/drivers/gpu/drm/virtio/virtgpu_plane.c b/drivers/gpu/drm/virtio/virtgpu_plane.c
> index 11288ff..1ff9c64 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);
>  }
>  

Applied to drm-misc-next

thanks,
  Gerd

Patch
diff mbox

diff --git a/drivers/gpu/drm/virtio/virtgpu_plane.c b/drivers/gpu/drm/virtio/virtgpu_plane.c
index 11288ff..1ff9c64 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);
 }