Message ID | 20210329075610.331093019@linuxfoundation.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp3417942jai; Mon, 29 Mar 2021 01:07:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzuM7vDlMpmq/CZ3GL5IQ6MbJnJEmthyKsPYrFWhr8nghL+XCV5/Q/vaqLMF2bdO/eD+7Lo X-Received: by 2002:a17:906:14d4:: with SMTP id y20mr27368033ejc.190.1617005274515; Mon, 29 Mar 2021 01:07:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617005274; cv=none; d=google.com; s=arc-20160816; b=dePW54n0hQcdtLHhB7RsdmDNnLu2iWnzLlCBq/uXfjj4aw7oNBggNpXccrkF+7c1UH LTmxGdT4eY0EMxpSBrWdCue54f3q9tvx6N/rrtr6zW9JIxq7u1Flp6fpeadLUCx+NGCd H7tkra8Lm0O36lqzu61sCD8gUq11eeoIoH5Zxi8GnoqfHbNtE85kIQbPq286wSpHOdiW 0jGRTMKCzR5Temy3jAhPKnBNALFSiVF3Rnpsb54EswNrfBClKMSd0+BXRd/SMDm7eEWI AWar0LoqPHbWhz9t+tRAmwdE9vOdIvB+WkGGm+w6q2EbZS/S7jq/Wt1L70t3LZ2vg1/S PX4A== 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=1DH3cf7xbdKLZyCbEEm0MKZCy9IoMYJzHVcDygGnS9o=; b=SW/urdgurV+oSu3wtr5erp25xG7iY2f4zVLAFGhsd1t2x9nJKuXg0FxPDlmkg3Rr/z B+yK6I3i7FUAeQ7ofux//EDse3NOPRsXEy2Qnu06dA5l5rwGFpubytdhFsf1DCSQOE/H LtAmXJtiaD9aIarGPQ/9ZFTM/STl8jWX1uUndbDC55Gb0gogBtP6FinnlZcZECZ6AYD6 FJscbihS6B9pJ90D82uwEygcvSmEYFK7zabGr/CODgEmKWHdiy3eTcMKlOKhn2SqLu6L /+3Vjl+M66DbxA/xTfN9PYZQAieKoOpGXRnOyl0kTozT1U+ojUhXbAiNU4phzTWYNQS3 Hj/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Rg3fGve8; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: <stable-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h10si12180173ejc.248.2021.03.29.01.07.54; Mon, 29 Mar 2021 01:07:54 -0700 (PDT) Received-SPF: pass (google.com: domain of stable-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=Rg3fGve8; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-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 S231830AbhC2IGq (ORCPT <rfc822;semen.protsenko@linaro.org> + 12 others); Mon, 29 Mar 2021 04:06:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:48450 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230052AbhC2IFx (ORCPT <rfc822;stable@vger.kernel.org>); Mon, 29 Mar 2021 04:05:53 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1776061976; Mon, 29 Mar 2021 08:05:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1617005152; bh=9Be9I229U/9Tp7VsCkRUYOH85ZXvpxB2pOi+/Kl8tss=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Rg3fGve8FlMP2ovuGRXgraY4dJrmhHrFgHPRfI16F5lzl/o/yEHkzbTYlaOUpWvuc buLv/VYQr27Rm2JwJwz5Ap/DOKi2JvTAYrcHPSxRo6sYdD3PfO1XK/sZEspRjamqoI 7Ioz+UEftxtuyvWGejjutDgEByouKvw6fTNALwXY= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Dmitry Baryshkov <dmitry.baryshkov@linaro.org>, Fabio Estevam <festevam@gmail.com>, Rob Clark <robdclark@chromium.org>, Sasha Levin <sashal@kernel.org> Subject: [PATCH 4.14 44/59] drm/msm: fix shutdown hook in case GPU components failed to bind Date: Mon, 29 Mar 2021 09:58:24 +0200 Message-Id: <20210329075610.331093019@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210329075608.898173317@linuxfoundation.org> References: <20210329075608.898173317@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: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c index c59240b566d8..3dad4687d3dd 100644 --- a/drivers/gpu/drm/msm/msm_drv.c +++ b/drivers/gpu/drm/msm/msm_drv.c @@ -1137,6 +1137,10 @@ static int msm_pdev_remove(struct platform_device *pdev) static void msm_pdev_shutdown(struct platform_device *pdev) { struct drm_device *drm = platform_get_drvdata(pdev); + struct msm_drm_private *priv = drm ? drm->dev_private : NULL; + + if (!priv || !priv->kms) + return; drm_atomic_helper_shutdown(drm); }