Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4591877pxj; Wed, 12 May 2021 08:50:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzsGu7g+zg/vR3VQSVi6oJEMupJwNM1uXg4axqRxOqmhNB/69TsaJTbrTSB1ui3FCl7ZB0Y X-Received: by 2002:a17:907:d14:: with SMTP id gn20mr1360635ejc.486.1620834655086; Wed, 12 May 2021 08:50:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620834655; cv=none; d=google.com; s=arc-20160816; b=HlpPR6W8T1yTJpKc0cugOoLc0q9mDTOfqTEHE9ChHTyLcs72vri1db2hGhBeGmOZTZ Rv98pRKhOQ9pGCyKdeqadm+tAKAr0EgRTif4/NDPptc5boZ1lNjPdAo3xyeP8j8AcXAo 7PeyeCaJ4IOmuUMgE4+vNaThyMejttA6/sJKJC15CAymaBVRAx/VAdpFIGN8j6S0MA6k kZDQduv26yDhZByGWt/CDX9KK11yimpHuRhu31mHaVQQ30yJfqXXoGAXNc8AWlV7zywy aKs1I1C5kh76X2GorAsIMFSKRJAyjyH7ekVDCNUylWdoOGZeKk4BIQXvZqdXnXnj94sL BE5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=4B120pzOm7oZixe1koc2cLINVmBIyUgG4VVrskoWCb4=; b=cMV9EVyzrfRDrZM2H4nmeLK4YhDPfTiJmbmA1PDmFRLfwb++DgJBzPeN7NihVQf+V/ ZBlCAOtfu6nj2dGIHc3VLDcHk5PLtGpZwen/6PhvrdRsL3Ipydndaq85wVHs6rf6i6Ti yd/nhV6aLKXyn09Lkck8LGmAzPdzaluCFqQiQao9nUrvhbOuJOfbPtDub/7UtBZzlQ0J GOE65jiGRP/hx5MtjUPDikFrLzzb3t4yJym0Z2ZtgaI4Hl4LDwbxMcjra/I2qvissTmE uUvtpB7JHMjKCd8IYtd6tSnJkY+48D4CmEO7bSCkjcK8hP3fWjCGl7HO+TsmWzvOPMNR EqQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1UFWfo7F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dp16si164106ejc.200.2021.05.12.08.50.29; Wed, 12 May 2021 08:50:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1UFWfo7F; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235037AbhELPoj (ORCPT + 99 others); Wed, 12 May 2021 11:44:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:59826 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234508AbhELPTl (ORCPT ); Wed, 12 May 2021 11:19:41 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 422D76199B; Wed, 12 May 2021 15:08:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620832084; bh=OR7DWcC8PW+np9PLM+QZ25mU/ZeAoHeHEOy+mCMH33A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1UFWfo7F0FPM1bIBwMvdOk/3+9yucn87O9AsJISct7TiZcAdFszq2qfkrukn9zhhu B3+FoVlPfeNf+REfMTeLe+LdtuhWT9x8fwBRIdq4gW+vlO9ikGN+uDZ01CEdJzUXGo ds4G8DHlA8onOi6uqOsI7Gybse62n9fqMNKaiqrk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tong Zhang , Gerd Hoffmann , Thomas Zimmermann Subject: [PATCH 5.10 108/530] Revert "drm/qxl: do not run release if qxl failed to init" Date: Wed, 12 May 2021 16:43:38 +0200 Message-Id: <20210512144823.348288024@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210512144819.664462530@linuxfoundation.org> References: <20210512144819.664462530@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Gerd Hoffmann commit 93d8da8d7efbf690c0a9eaca798acc0c625245e6 upstream. This reverts commit b91907a6241193465ca92e357adf16822242296d. Patch is broken, it effectively makes qxl_drm_release() a nop because on normal driver shutdown qxl_drm_release() is called *after* drm_dev_unregister(). Fixes: b91907a62411 ("drm/qxl: do not run release if qxl failed to init") Cc: Tong Zhang Signed-off-by: Gerd Hoffmann Acked-by: Thomas Zimmermann Link: http://patchwork.freedesktop.org/patch/msgid/20210204145712.1531203-3-kraxel@redhat.com Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/qxl/qxl_drv.c | 2 -- 1 file changed, 2 deletions(-) --- a/drivers/gpu/drm/qxl/qxl_drv.c +++ b/drivers/gpu/drm/qxl/qxl_drv.c @@ -144,8 +144,6 @@ static void qxl_drm_release(struct drm_d * reodering qxl_modeset_fini() + qxl_device_fini() calls is * non-trivial though. */ - if (!dev->registered) - return; qxl_modeset_fini(qdev); qxl_device_fini(qdev); }