Message ID | 20210319162333.160421-1-festevam@gmail.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp1519145jai; Fri, 19 Mar 2021 09:23:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzyB4m/AlrJ87QtEW/N6VK71zQPkw2/YKsI3SJVUF1IluuBV1voDi/2+62wCu/g8MKENG8x X-Received: by 2002:a17:902:f547:b029:e4:6dbc:6593 with SMTP id h7-20020a170902f547b02900e46dbc6593mr14851423plf.4.1616171032102; Fri, 19 Mar 2021 09:23:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616171032; cv=none; d=google.com; s=arc-20160816; b=ZLaIYwO5xkCB+fYE9XI2P96F9/FAWajB+1u4nhhTaYWyTyQAkGaMwr6W0EGUzT7cN2 L4Mxy+hmczRz7SXSfFLsBqm4TppZDOQT+9JD0RjHlplDBYywp5sydRvSvCRw4lhlIHxs 3mKEOIOVBUSXe0xFPNDaB6phaaJIhz8T2+kVmjA7caUoj/3AP7Qe/F7Re1nbA99rbWtF 7ARv1x5SHDB0ItZvr3KvoJDe0WtHedHXRp/+68z9pcC7Xq0OXQyPSAXVTQsfiR3fsLVC 29jN4OrEqkCjjlFtNBaTxZZ3m6pnFXmJiwgnTORhkCCohBRzeES0uag8NORLheZFbg/I cGAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:message-id:date:subject:to:from :dkim-signature:delivered-to; bh=di5dXlWluQPMCk8Oi0FFzccOYMs+5OKKZ3rKh5N+660=; b=V8k9ctAyGncXnH6CpSxTCTwXtU4rnNwO4R8Cb0LXFs2K1YVSICmuq4v3TA39msAjU/ P7MM3ComwklHuH0pdR1LDG2mM3zruL4MyOygjYP18cDKCoYHU7Z7bX1ca5sHhb09UXcz f5PwBgOLhSyNERAoekvVOlubtoXNPv03NSZ70fWzam3fGRX0nVSfP8BWwduixofW5TF/ N5lAY8CXga1g8p28ANr1ROycSP8C2orOyEaRUqHca+OxS/nS/zV8NGW5vSb4dU5kOrJY 8GaAnll0kBNc4fSf6oDJgYTCsqtBsbs+VRFYCEfduvoWVeEjmnMi0y0X5qKSz/3K4Ymw Vnvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=HR6xOX9f; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: <dri-devel-bounces@lists.freedesktop.org> Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id u11si6651831pgh.277.2021.03.19.09.23.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Mar 2021 09:23:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=HR6xOX9f; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C714D6EA4B; Fri, 19 Mar 2021 16:23:49 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qt1-x835.google.com (mail-qt1-x835.google.com [IPv6:2607:f8b0:4864:20::835]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2B6FD6EA4B for <dri-devel@lists.freedesktop.org>; Fri, 19 Mar 2021 16:23:49 +0000 (UTC) Received: by mail-qt1-x835.google.com with SMTP id 94so7165616qtc.0 for <dri-devel@lists.freedesktop.org>; Fri, 19 Mar 2021 09:23:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=aszUJC90CIYB1lH8sFdFWvXkj7Wq32WHk+qZyraeSZM=; b=HR6xOX9fGemRQxWoRDxgJ6mcJfrXayVE3Ps/RATA85oL2vvG/0y5WPpIO9KdMlI5Yo 8dyiCnV+W2c/no9+cuGIvX4PDG4nk0d1JL8UHDor0/aAfiptlWCdH2jz5z0nm1uAGkaJ nKqf2E28mvrXR3sDTCeU3wt4IofN+vZorVVC70X4pzl5FJFHAvIns3mXww8nfegyTUxa xQkD03+0qe/rvSmuv+RixuCJdYC/RreKL0VGpE+cXP3LQp7gyWypD6Fqty2zTrhCn8XT Kuoo5lrigB2i4CF9tGZm5gBhIWyBJJ7VVIK4laQHiDQ+pIuBBtDTavcUnBUDZLtwHdgZ ybJA== 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:mime-version :content-transfer-encoding; bh=aszUJC90CIYB1lH8sFdFWvXkj7Wq32WHk+qZyraeSZM=; b=X516RY3rUAPcrDcwol4/bBF/EayqDC6JrogKKy1TCYQpsKk1EzZxIRJgO8eHZcF5pa +NrPr9+r4k1yT1oBEyF+ziydcEP7I8sSWLiUF6kSqGBRoIQW14SrCwEEIyc4BCciE02Y JZkqXONp0JPwz/NbsrJenCXZ2zDvfNAnYiZkUyAyuxSbx0lLbUvPlhYc9PjMoVL6fZY/ 41qKkcd9MndVVKCXrbhvahAJSQzwdJXuVQUHndzRgpd9qidhDLP8i/kYTKN/wyMU+cfM 7OsBgw7Yh3dFa8vSpWXXJmhBY6elMoTWC1RszPfJEqZcw/D9ssAxU9ImvBe6HsYf/O9D RtxA== X-Gm-Message-State: AOAM532FuCe6Dz93alLjdwrlYJJktH/OP3WvWJME60rMulmounmVFL2f nawkaEOqwjkANwOZHrRa0JI= X-Received: by 2002:ac8:7d42:: with SMTP id h2mr864558qtb.182.1616171028139; Fri, 19 Mar 2021 09:23:48 -0700 (PDT) Received: from localhost.localdomain ([2804:14c:482:919:c165:89a3:1374:f96a]) by smtp.gmail.com with ESMTPSA id q65sm4722903qkb.51.2021.03.19.09.23.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Mar 2021 09:23:47 -0700 (PDT) From: Fabio Estevam <festevam@gmail.com> To: robdclark@gmail.com Subject: [PATCH 1/2] drm/msm: fix shutdown hook in case GPU components failed to bind Date: Fri, 19 Mar 2021 13:23:32 -0300 Message-Id: <20210319162333.160421-1-festevam@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development <dri-devel.lists.freedesktop.org> List-Unsubscribe: <https://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <https://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <https://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> Cc: dmitry.baryshkov@linaro.org, sean@poorly.run, dri-devel@lists.freedesktop.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> |
Series |
[1/2] drm/msm: fix shutdown hook in case GPU components failed to bind
|
expand
|
diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c index 94525ac76d4e..fd2ac54caf9f 100644 --- a/drivers/gpu/drm/msm/msm_drv.c +++ b/drivers/gpu/drm/msm/msm_drv.c @@ -1311,6 +1311,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); }