From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ED0A223DC for ; Wed, 22 Nov 2023 03:16:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="h4/Yf7yS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 529A2C433C7; Wed, 22 Nov 2023 03:16:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700622973; bh=ePLe9bgDqiTHGtJaQqESyjhLlYLHPQWdLARWbT1o1Tk=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=h4/Yf7yST5ro60gdOVyydNZ92MqefAUbrzmUZFo1l2CUDHyhDeKtTheld79a1L7C1 XTpDu5lJCtHKbbK28W76Apwu3Mc/7Es+WsjsqA9Dd9LBr72NYO02BYyUlRKeZItIxR fzTTOa+atqEjApRhRHMvigeKwbgXCOn4QIWUk+wnCtNXpbtPtpAh510pj5Xofez19D rabAPw1b+niWwMLzwvIav1TRUIR2OTQYTdrC7tzSfrRMu/XOlJyl096XMi8wnwVlSW zj3n0GgdbodxCivXYmyiY2Gwnp+IiWsomHe6HYNaMqavJuHECtp+BbMqwMiRPVtCRO Azii4pWV0snMQ== Date: Tue, 21 Nov 2023 21:16:11 -0600 From: Bjorn Helgaas To: Daniel Stodden Cc: Dmitry Safonov , Kurt Schwemmer , Logan Gunthorpe , linux-pci@vger.kernel.org Subject: Re: [PATCH v3] switchtec: Fix stdev_release crash after suprise device loss. Message-ID: <20231122031611.GA268086@bhelgaas> Precedence: bulk X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Tue, Nov 21, 2023 at 05:02:22PM -0800, Daniel Stodden wrote: > > I apologize for the confusion. > > Re-starting this thread wasn’t much about adding more reviewer names. > > What I meant was what came out of his review: > > diff --git a/drivers/pci/switch/switchtec.c b/drivers/pci/switch/switchtec.c > index 073d0f7f5e43..b1990bde688c 100644 > --- a/drivers/pci/switch/switchtec.c > +++ b/drivers/pci/switch/switchtec.c > @@ -1387,6 +1387,7 @@ static struct switchtec_dev *stdev_create(struct pci_dev *pdev) > > err_put: > put_device(&stdev->dev); > + pci_dev_put(stdev->pdev); > return ERR_PTR(rc); > } > > > I probably should not’ have put that patch fragment at the far end of my email, past the signature. > > If you prefer a v4, I’ll make a v4. Yeah, just post a v4 if you don't mind. Another version is free, and then there's no confusion about what you intend :)