From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B9805C28B2B for ; Tue, 16 Aug 2022 11:37:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234087AbiHPLhQ (ORCPT ); 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 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