Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1166805rwb; Thu, 6 Oct 2022 09:14:17 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4c3Oc949A3NR7jYRhnFeD15WHKBz9P3YdaJG0IjC0Dv88OXygtX7Ssv3Jc1TdFGbTG7ANK X-Received: by 2002:a05:6402:847:b0:453:944a:ba8e with SMTP id b7-20020a056402084700b00453944aba8emr521802edz.326.1665072857430; Thu, 06 Oct 2022 09:14:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665072857; cv=none; d=google.com; s=arc-20160816; b=IeeKRYhe14uMbBOxZ6pprnrXX3yYtokAtBL3NWID1E8umXZpyEgakTIhYhp4+p8Q3X rGT0InT2Q0rCnsLc0/qsxE1zZJCWYUnJpUwFwqMdb3U2fpgnzKP75dEHdQDSZYC1V4ar +60Dv6NZVkENoWngXfUOJtHQSG648ZbOV/Y53c3JmtrFBX8656w45r1pxQGqDg7xWv4A ATCgq1mg88mrPfWxOzyfs0XfhT29vRYUMKLSqKQlAmA+ViJNQ9c6TUfdGfWUr08V3wZG nXLdx0NZtOxPsv1acVe9UcWs8Hg0yPq55LzJOB94crq5bY5NG/5G4Z5XZfdAXZbRAK29 4qfQ== 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 :message-id:subject:cc:to:from:date:dkim-signature; bh=FcniOXymaKkoBfoLja6RcH/GWOEt//buffdHK+P/b6Y=; b=YZC1yefLMsp5L7ZC0Yss/VdVArhPHj2+CQKlr5mfXuE+Kwd692OQbOSTGNlICGE0Cu Nq23cb7FQUH1loNn+ZoUhTkA/ZU4oCPUhLi7U03kvvOgn5130iLbh6eOzIfQYPRs/W6W DUFOUCP9S9lcx/zx56Uij9KDuPaV2fpEDnNPTNGrRLH5n7zGBEi1hl7bZEPcv8SurHqy 9cILh94ZqyT5uistxe+fh7uVvNvv+BH1RK+annDU0PSquRU9OCYkM6C5ItWWOWDikAns DOKWvRNIuMVAEVzIzohs7+os6oZz1VFAb9jZtGCLSAOs+fX0yO+c5MMBAxQKErLo9O/r bVbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bYRc9gY+; 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 k11-20020a1709063e0b00b0077a6429787dsi15100887eji.157.2022.10.06.09.13.42; Thu, 06 Oct 2022 09:14:17 -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=bYRc9gY+; 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 S230493AbiJFQHt (ORCPT + 99 others); Thu, 6 Oct 2022 12:07:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230039AbiJFQHp (ORCPT ); Thu, 6 Oct 2022 12:07:45 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BA005FAEC; Thu, 6 Oct 2022 09:07: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 DAD2CB8060E; Thu, 6 Oct 2022 16:07:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 79E13C433C1; Thu, 6 Oct 2022 16:07:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665072462; bh=UgBb/TSUw7my6TY7l4G4qUWrT35p6b5DxWO5v2EXFUw=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=bYRc9gY+RnaW3M+UVdNEDmoLAugBYy8K2qX0kpXPGQkv9N5tbL79ptUNR2mMT7szw QoVJUwxd885mPZ0VCF0KSbvDiSAs6BvjXT6jz9eyJSCygFvb7QlYVplbUs8/Q+Cjyr NuzuGZQN4iAn767Bn1IgR2AWGtPIq3PotbEN6AgX90ns466dTjErLVIxPjZVirBNU4 l8WwEykmpRY0G9lwblaUww19ZUdVoLT4wvn+SUhVhm/JGRBFkhZJUD0EcllR5cgYJ7 7edK6mnfNSGxnnhFSpD3c+6yc3NiePbLikMhys4hB+n7EE8T5j4lG7yK0ErHWO3I/X 702ZHcrx8fTRQ== Date: Thu, 6 Oct 2022 11:07:41 -0500 From: Bjorn Helgaas To: Lorenzo Pieralisi 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: <20221006160741.GA2470032@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Thu, Oct 06, 2022 at 08:35:34AM +0200, Lorenzo Pieralisi wrote: > 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. Thanks, picked this up yesterday :) Bjorn