From patchwork Mon Dec 12 19:35:30 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Padovan X-Patchwork-Id: 9471119 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 1080D60573 for ; Mon, 12 Dec 2016 19:35:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ED452284CA for ; Mon, 12 Dec 2016 19:35:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E1BAC284F0; Mon, 12 Dec 2016 19:35:41 +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 6BE27284CA for ; Mon, 12 Dec 2016 19:35:41 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EC9436E3E5; Mon, 12 Dec 2016 19:35:39 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ua0-f195.google.com (mail-ua0-f195.google.com [209.85.217.195]) by gabe.freedesktop.org (Postfix) with ESMTPS id B9F4A6E3E5 for ; Mon, 12 Dec 2016 19:35:38 +0000 (UTC) Received: by mail-ua0-f195.google.com with SMTP id 50so9632538uae.2 for ; Mon, 12 Dec 2016 11:35:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=3YDsmSne6+JbvLSt4TP1w1v8Wl2Jq7iIyfVgHS+GOJ8=; b=IMcfbGUTFx3aD2Uh3rwvAGiR38L7EPIWaCUMmJyIDTRK6q2H9n27vB0BtBW49X2Ljo pFgswGPzEIG9CqycNI7+tMrLtHIyqsb+zJpHGGkQL/ZJw5bBt+QkMi7gpkEm7e+ADzFt +f2gIDqtsjsNv0wFsv6rvk44fVlUaYQieDJ6mgNxJ/RHClJ6VBIIa7diNPhuDJogVtTg YSZWpm9KllWjWXZM4RtRhblCbpkfI+G/9lNcOB3zASOLW72cy3yunlFLuN/rdLvR7XZU 4l1bgDHbDOfi4OZPH8foYtRQEOzuRfSFtlTzMeS9t2HITwQR9k858UfUXoR31NCORhCP jWvw== X-Gm-Message-State: AKaTC03+eLUpufsZQoIm6oT8ZCslUl/c1YePT9S6ywyu9abSqCIKMTVH8WaQXOWaP+whug== X-Received: by 10.176.80.101 with SMTP id z34mr75351151uaz.140.1481571337694; Mon, 12 Dec 2016 11:35:37 -0800 (PST) Received: from jade.localdomain ([187.64.235.185]) by smtp.gmail.com with ESMTPSA id i62sm12406655uai.26.2016.12.12.11.35.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Dec 2016 11:35:37 -0800 (PST) From: Gustavo Padovan To: dri-devel@lists.freedesktop.org Subject: [PATCH] drm/virtio: call drm_plane_cleanup() at destroy phase Date: Mon, 12 Dec 2016 17:35:30 -0200 Message-Id: <1481571330-13768-1-git-send-email-gustavo@padovan.org> X-Mailer: git-send-email 2.5.5 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 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); }