Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3544184rwb; Tue, 16 Aug 2022 05:07:49 -0700 (PDT) X-Google-Smtp-Source: AA6agR4Xfw120i6XyPEnmACn+kFhh8yxdM0/uxdfUa4FO1MBVBpwh+TdxHTZuJBPNinSnxUOC2Zc X-Received: by 2002:a05:6402:5388:b0:435:71b:5d44 with SMTP id ew8-20020a056402538800b00435071b5d44mr18135342edb.364.1660651669407; Tue, 16 Aug 2022 05:07:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660651669; cv=none; d=google.com; s=arc-20160816; b=Lb5+R9xIlPn6aqdVyNJwNgig1dNykbL5elvibhAX5BaO/H2Zjz53tz3da5oO0Kv1dr COnwT00HNMalDrEdvXk2C2qcCin70+A5zT/kED7/5qAOw3Q6uSasr9J0fqwRijFwqgdR GAKPfuUU7ieAiK8+C4c3Yob11nY0W1kUDl+G05hp/v9yGYoLOzkFpUo8UBNiNpGJl9Zw /uNkSvwPnzDCLhMyirGk+lnlSHctlgkxdnGKnUMuwpGOceere+9jy54eBfCQ2MmQFVAv iJNrRspRjhEIWmgGpCHUWdPRm4NPg3y9p3QJ8uTqXTfWLEGwi6e7Pgt9i7KMop5di4yp 2WVg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Yu8or8Iq2nP2E2TOCfDLtCRWC8ZERUfFUEpfNR18afk=; b=dhbVfNErr8MliQL/eK559IKjMdqtvBBclbagN1dHdh6ohd/USbUq60rXtts0rlI582 n5C4PWIlRZBO22B1t5oqz/trfpUFYRzFkSIz9PoNC7oNs5VhxGOQ21pcWLivPDkrbUO2 QbWFUuP1Qp2BboIQvdTAoB2I40Uboff9Hz8xD1E+k/pwIa88GsOKVBAXFokhzx3FE8Bi 7vbyFRM50uqbf3DLNW3eXRj5JBs84FLs0WBAkjJ6caHAu3Xuvfz9kXeC95PFyiUSNk1F v6Xdy66eYpME1u+vO4QTat3B6yPfr3PD+a75Wa9OyPYAJEplAblXn4VSa0ZI+AjbrZQf PDyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YMfBHffm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hb12-20020a170907160c00b0072ab5d0fc33si10884885ejc.863.2022.08.16.05.07.22; Tue, 16 Aug 2022 05:07:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YMfBHffm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232570AbiHPLhQ (ORCPT + 99 others); Tue, 16 Aug 2022 07:37:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232139AbiHPLhA (ORCPT ); Tue, 16 Aug 2022 07:37:00 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C47B1087; Tue, 16 Aug 2022 04:02:50 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id A4E7ECE17B0; Tue, 16 Aug 2022 11:02:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D4A26C433D6; Tue, 16 Aug 2022 11:02:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660647767; bh=oZPcqIdh79CnlZuSFlpmlXwKmwhadfFf6w9Z3zvBFKI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YMfBHffmJONrmTFIMUuHRzMihpur+dI+FJF2AK1BnZ9nrZWPfe8LhKLV/fXytFdVZ Kef0udxlh8oIv1JUcegVzVUu9J3xTWclFGcWeCteEhFlHTnB0Nd8F+GSsoeIAW/W7P ZPji/Czkfl8q8U4LHUhlARvDW8TLbLvYMCU0WwMWVSY6QFK4B+QYDHgOPFENFV2vda WW/fb4BG/tWzs6Fp+1XtkqjaQZUlb7Bk2aQwJgBe3tI/AxZgiXYFbcVDrZVRmZ3GgZ DYlnl1nSEmoUKaJ5YhEI3kLszlALuWQARZe/AF7zxMCvFkahnio/slu8AOoslJiKR5 1t9Mntlti0L3Q== From: Lorenzo Pieralisi To: linux-arm-msm@vger.kernel.org, Yang Yingliang , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Cc: Lorenzo Pieralisi , mani@kernel.org Subject: Re: [PATCH] PCI: qcom-ep: check return value after calling platform_get_resource_byname() Date: Tue, 16 Aug 2022 13:02:25 +0200 Message-Id: <166064770874.160374.17316650518985523856.b4-ty@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220429080740.1294797-1-yangyingliang@huawei.com> References: <20220429080740.1294797-1-yangyingliang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 29 Apr 2022 16:07:40 +0800, Yang Yingliang wrote: > If platform_get_resource_byname() fails, 'mmio_res' will be set to null pointer, > it will cause null-ptr-deref when it used in qcom_pcie_perst_deassert(), so we > need check the return value. > > Applied to pci/endpoint, thanks! [1/1] PCI: qcom-ep: check return value after calling platform_get_resource_byname() https://git.kernel.org/lpieralisi/pci/c/a6f7fbae8371 Thanks, Lorenzo