[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20260122163023.GA1251597@bhelgaas>
Date: Thu, 22 Jan 2026 10:30:23 -0600
From: Bjorn Helgaas <helgaas@...nel.org>
To: Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>
Cc: Bjorn Helgaas <bhelgaas@...gle.com>,
Ville Syrjälä <ville.syrjala@...ux.intel.com>,
linux-pci@...r.kernel.org,
Christian König <christian.koenig@....com>,
LKML <linux-kernel@...r.kernel.org>, stable@...r.kernel.org
Subject: Re: [PATCH 1/2] PCI: Fix BAR resize rollback path overwriting ret
On Thu, Jan 22, 2026 at 12:07:40PM +0200, Ilpo Järvinen wrote:
> On Wed, 21 Jan 2026, Ilpo Järvinen wrote:
>
> > The commit 337b1b566db0 ("PCI: Fix restoring BARs on BAR resize
> > rollback path") added BAR rollback to
> > pci_do_resource_release_and_resize() in case of resize failure.
> >
> > On the rollback, pci_claim_resource() is called which can fail and the
> > code is prepared for that possibility. pci_claim_resource()'s return
> > value, however, overwrites the original value of ret so
> > pci_claim_resource() will return incorrect value in the end (as
>
> Hi Bjorn,
>
> I noticed this should have been:
>
> "pci_do_resource_release_and_resize() will return incorrect value in the
> end ..."
>
> (used a wrong function name).
>
> Could you please adjust the commit message in your tree if it's not too
> late yet?
Updated, thanks!
Powered by blists - more mailing lists