From patchwork Wed Feb 15 18:00:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Padovan X-Patchwork-Id: 9574663 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 49CC46045F for ; Wed, 15 Feb 2017 18:00:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 29C16284DE for ; Wed, 15 Feb 2017 18:00:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1C86428503; Wed, 15 Feb 2017 18:00:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C2510284DE for ; Wed, 15 Feb 2017 18:00:15 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1A4686E994; Wed, 15 Feb 2017 18:00:15 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qk0-f196.google.com (mail-qk0-f196.google.com [209.85.220.196]) by gabe.freedesktop.org (Postfix) with ESMTPS id 25FA26E994 for ; Wed, 15 Feb 2017 18:00:14 +0000 (UTC) Received: by mail-qk0-f196.google.com with SMTP id 11so24288836qkl.0 for ; Wed, 15 Feb 2017 10:00:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=+bDHdb5/mLPoZ3rxwBmMZMtyD7JjXTj+miZinz/S61o=; b=pxqTWVfjfar6eqPNK10QIeCwXUIYqq04iF6tqEtr9Jb3Bqe4UYs0XGLqhSYvo+OSKI XETAVuQbE+3+wBYq1gtXBga6xA1cmQ5wpfHBC12vIA8Lyy+m7W/V/rOwT23qGyLlS7Kx tYXj120FfBY46RVIdXIMlSzR24oiMq5UnJjBMbhtHC0K64pyKB6NZHZ5zz7YU7VG3E3l 151sRMx4GZbmxo4qZZ4U+Hr7i3hBVODDn6je0HOjRqpK7sg8+KvP098VKTmXxSHkRz/B RcXUlDygJSnlNvc32MHjApAkgBJIxbRjbmMaF4+xQzJ1UpAQj6APid81pb7FTVTLP2Ba /dNw== X-Gm-Message-State: AMke39k59/L9P0QlwlCy4brq340Qev0kqk9OLUedapPJS9E7Ugsv2yAp8Ga3O4YnYnObAg== X-Received: by 10.55.163.215 with SMTP id m206mr19383071qke.303.1487181613312; Wed, 15 Feb 2017 10:00:13 -0800 (PST) Received: from localhost.localdomain ([187.64.235.185]) by smtp.gmail.com with ESMTPSA id b16sm2763833qka.9.2017.02.15.10.00.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Feb 2017 10:00:12 -0800 (PST) From: Gustavo Padovan To: dri-devel@lists.freedesktop.org Subject: [PATCH] drm/virtio: call drm_plane_cleanup() at destroy phase Date: Wed, 15 Feb 2017 16:00:08 -0200 Message-Id: <20170215180009.7091-1-gustavo@padovan.org> X-Mailer: git-send-email 2.9.3 Cc: open list , Gustavo Padovan , Gerd Hoffmann , "open list:VIRTIO GPU DRIVER" X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Gustavo Padovan virtio was missing this call to clean up core plane usage. Signed-off-by: Gustavo Padovan --- 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); }