Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp504498rwb; Wed, 5 Oct 2022 23:45:33 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5ionmGx6st8jV+OJs4VSk/b+HybhVg6EoUqTNWe/d7Neg0TXiF3Mz9/6QSav9D/howdKBp X-Received: by 2002:a17:907:724e:b0:783:5fba:4298 with SMTP id ds14-20020a170907724e00b007835fba4298mr2955370ejc.28.1665038733570; Wed, 05 Oct 2022 23:45:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665038733; cv=none; d=google.com; s=arc-20160816; b=FvVXQXL/XUnnlqWDIxX/HCYEJfJV6wCV79dLv51AQ8r8eZoZCOsDY17pppaA2D0nGJ KdR7z/sVz96xADCJ+PZI+gdHfSImE4MKYURYwWo7NMwBeZYam7y+CKwWlH1fHFtmA7J8 9xAPp6S6VClZyynX/5eRkBCPH+R9xrtxChue4pDejtABHbUu4RC18Y91jP686Mv/3iXS /yV4f00i7HSNyDOv2ZsgoUKZEzDGfPGcbTrtHXOpsTRJE5EnPrNMgOgOACfLHL0E19vf UaqZEDvUyIH0PmY0m2mPw5JvWvzW0o3iQGDdxdL21JWoXnNqqldO++bafXb1LSx9rCnn BgsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=hKy6kDkVkuioc1MQZ9LMXu7E04uV2E1VWJMF9X9DgnI=; b=QydTApp+IQlq7LmkIKxs+QEsAi3hhNj8NifmeF/LFBr5ufTyDBgKkMsoFAn6v7Cuv/ N6h1PDnAGrMTuQtF+kPYDDqKpoDHXdOtHtxk2TJY4AZq1TSgRwd4JrAfTapMgSeJ2t0C k+zsrgpeKWcKJKsEZjyR31nmG+67ADsBYAvNc3rtDyAusWrC1VX7Ca/3sTs+s+aFa5tJ IAP+TOQpUX8FXN/BaQXd/0gFxfSMSUYuszJsYNi2ZJwseHvxF+dHtj8/mUnUcttm4aSS U05ITk6bgtOmcTNlkm5Nu+ixktz4unnZjQuF54UKAtAxtirXVc5TZhPlgIA9L2klQvQ+ wCvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=O5FX1N4q; 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 nc35-20020a1709071c2300b0078c31a71f47si8686969ejc.220.2022.10.05.23.45.04; Wed, 05 Oct 2022 23:45:33 -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=O5FX1N4q; 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 S230073AbiJFGfv (ORCPT + 99 others); Thu, 6 Oct 2022 02:35:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229815AbiJFGfr (ORCPT ); Thu, 6 Oct 2022 02:35:47 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4648A696CB; Wed, 5 Oct 2022 23:35:45 -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 ams.source.kernel.org (Postfix) with ESMTPS id 857E0B81EA0; Thu, 6 Oct 2022 06:35:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 00ED8C433C1; Thu, 6 Oct 2022 06:35:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665038142; bh=Wbu3shF6t8LvrsmEHzefRcotejG/Z5j72dNtKsmroMc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=O5FX1N4q/5udncTDUfc/4mBdtA31HRFcl3nAaLaG5eTkT3sepCeaG3sO1Wy9Ta44F 2fI6eZf1Q9whdgx2zNPqtAeGgkZ8Omt1Fq87LLfQwwVQpO1s7Vg165rG60F+kOsq67 Om8KcLqf8x6kgR0kIETfR5+SB1DPmYPGiwhcGPn4RRWym+gogHsQKWE6alWRrHKMay phdeQcsmCvMDy31GrzjfrEizgBTOYkRRtU/SIpjGvL7NB2ZeGrNm7qC37DVyIochlH xwNbH5A6hY0dINpMb+ZPkqOE/BDwAd72tKde3cDfZXBfX/DlLumq+M5O8mOSI89Qrb kMmp+VRU2jrYw== Date: Thu, 6 Oct 2022 08:35:34 +0200 From: Lorenzo Pieralisi To: Bjorn Helgaas Cc: Manivannan Sadhasivam , kw@linux.com, bhelgaas@google.com, linux-pci@vger.kernel.org, robh@kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, kernel test robot Subject: Re: [PATCH] PCI: qcom-ep: Fix disabling global_irq in error path Message-ID: References: <20221005135852.22634-1-manivannan.sadhasivam@linaro.org> <20221005173529.GA2304247@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221005173529.GA2304247@bhelgaas> 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 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 Wed, Oct 05, 2022 at 12:35:29PM -0500, Bjorn Helgaas wrote: > On Wed, Oct 05, 2022 at 07:28:52PM +0530, Manivannan Sadhasivam wrote: > > After commit 6a534df3da88 ("PCI: qcom-ep: Disable IRQs during driver > > remove"), the global irq is stored in the "global_irq" member of pcie_ep > > structure. This eliminates the need of local "irq" variable but that > > commit didn't remove the "irq" variable usage completely and it is still > > used for disable_irq() in error path which is wrong since the variable is > > uninitialized. > > > > Fix this by removing the local "irq" variable and using > > "pcie_ep->global_irq" for disable_irq() in error path. > > > > Reported-by: kernel test robot > > Fixes: 6a534df3da88 ("PCI: qcom-ep: Disable IRQs during driver remove") > > Signed-off-by: Manivannan Sadhasivam > > For today's "next" branch, I dropped 6a534df3da88 and the subsequent > patches. Hopefully Lorenzo can squash this fix into 6a534df3da88. Done - the pci/qcom branch successfully passed kbot's tests as well. Lorenzo