Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4082245ybi; Mon, 29 Jul 2019 18:52:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqwIvLQEW+vSioX7u+7A+MCYEJ3j78wgzYjYafYUr8bDEZEjYQ9q6QrV1DGu1OBMAoLuXwkz X-Received: by 2002:a62:79c2:: with SMTP id u185mr40120452pfc.237.1564451553031; Mon, 29 Jul 2019 18:52:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564451553; cv=none; d=google.com; s=arc-20160816; b=u4zNu4H0ZjvFBOuSnLDvYK5btbOoByh8XTIaMfNNXnwBsYa/46bFuD8ut5E78Xq07H iedQ4kC7liytrjzCbK2tZX+RWfsj90C5rbwv1+1bwvBau3MecyOaEbHIw9kdwj5yYswU BEDgbJAsUGQEyLnEf3eoyEdBa9Fo97yAaaAN1GOXGIV49EYcZpeFViwV80ma0Pa88AJ/ V23kiGYp5ILiil5uFPV4mly0mELcKjFi76GJA/Lh20ZxlNVsQE87CBx5kz+vpafAWy4l Hn/prqjPEFo31MMNF49F0voIfuSKZZaGgmgCvTcYSDZsTsiEIFhxjIF2pJ+vHYFNQJne jcPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=nbl2IUnclfYeY8Q+sn1dQiZOOZFR/s5otiCqY0rEgV8=; b=ZSicisVoNH5YcbWwO941SCHrVUZ66LrPXr1E8npWLbAnYDdNosNQlUOWURGYjQrI36 By1rQkdJ3qtKyTCMo9aR25QJKt+dTeawRUxE1WUre9Gx/naTfxLxKHFBRMVyHUadGpBu o0pphzUdlmK++sb85RhEk80NcXkQ7B5vuOw5cnCGDEAheg7KACKtgWjUgjKhIfMqNw5Z iQSIbYXDlQ8wACC3KUD1mRS3M/gySIsTJOL4yT5mX+x6O24VFFKSJzPL/IYxMbbfpPJM jhMq7LIboapv44FCCsXJ76xlH5ZmjI3R9wI1RAkdztzdguiU3FkKQG0yzb5TZFOzLXhq o4Ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=pFgNEDWb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p1si25119542plr.103.2019.07.29.18.52.18; Mon, 29 Jul 2019 18:52:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=pFgNEDWb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728705AbfG2Tp1 (ORCPT + 99 others); Mon, 29 Jul 2019 15:45:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:34340 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389945AbfG2TpZ (ORCPT ); Mon, 29 Jul 2019 15:45:25 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DD9812054F; Mon, 29 Jul 2019 19:45:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564429524; bh=uPp4tapojiNozBdE6upd4Gpo8ntR3WWdTAio4QDbu9k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pFgNEDWbLLTvf3mgJimVcvk9ytHFlNkQgwbhsY2EEsE0I3xB2lj4x+QQkLmBFAU2P 1Mg4ObWOgeBf4XlsWG3z9H1dOWlMZ80tkCJdyQfiPQWCNutusFGQfy+L/zwGtHdkGu 6c7FVU96qrGLTziainCNBWO92tqojzBze0wcS4Fg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sam Bobroff , Gerd Hoffmann , Sasha Levin Subject: [PATCH 5.2 012/215] drm/bochs: Fix connector leak during driver unload Date: Mon, 29 Jul 2019 21:20:08 +0200 Message-Id: <20190729190741.665670375@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190729190739.971253303@linuxfoundation.org> References: <20190729190739.971253303@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit 3c6b8625dde82600fd03ad1fcba223f1303ee535 ] When unloading the bochs-drm driver, a warning message is printed by drm_mode_config_cleanup() because a reference is still held to one of the drm_connector structs. Correct this by calling drm_atomic_helper_shutdown() in bochs_pci_remove(). Fixes: 6579c39594ae ("drm/bochs: atomic: switch planes to atomic, wire up helpers.") Signed-off-by: Sam Bobroff Link: http://patchwork.freedesktop.org/patch/msgid/93b363ad62f4938d9ddf3e05b2a61e3f66b2dcd3.1558416473.git.sbobroff@linux.ibm.com Signed-off-by: Gerd Hoffmann Signed-off-by: Sasha Levin --- drivers/gpu/drm/bochs/bochs_drv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/bochs/bochs_drv.c b/drivers/gpu/drm/bochs/bochs_drv.c index b86cc705138c..d8b945596b09 100644 --- a/drivers/gpu/drm/bochs/bochs_drv.c +++ b/drivers/gpu/drm/bochs/bochs_drv.c @@ -7,6 +7,7 @@ #include #include #include +#include #include "bochs.h" @@ -171,6 +172,7 @@ static void bochs_pci_remove(struct pci_dev *pdev) { struct drm_device *dev = pci_get_drvdata(pdev); + drm_atomic_helper_shutdown(dev); drm_dev_unregister(dev); bochs_unload(dev); drm_dev_put(dev); -- 2.20.1