[PATCH 2/2] nvme-pci: fix error unwind in nvme_map_data

Keith Busch kbusch at kernel.org
Wed Jan 20 12:42:52 EST 2021


On Wed, Jan 20, 2021 at 05:48:24PM +0100, Christoph Hellwig wrote:
> On Wed, Jan 20, 2021 at 07:23:39AM -0800, Marc Orr wrote:
> > On Wed, Jan 20, 2021 at 1:49 AM Christoph Hellwig <hch at lst.de> wrote:
> > >
> > > Properly unwind step by step using refactored helpers from nvme_unmap_data
> > > to avoid a potential double dma_unmap on a mapping failure.
> > >
> > > Reported-by: Marc Orr <marcorr at google.com>
> > > Signed-off-by: Christoph Hellwig <hch at lst.de>
> > 
> > Should these patches go to stable?
> 
> Yes.  I've added the proper fixes tag:
> 
> Fixes: 7fe07d14f71f ("nvme-pci: merge nvme_free_iod into nvme_unmap_data")

Patches look good.

Reviewed-by: Keith Busch <kbusch at kernel.org>

Just fyi, the 2/2 is the only one with the "Fixes" tag, but it depends
on 1/2 to compile. It applies cleanly to the recent stables, though, so
stable bot might have some trouble with it.



More information about the Linux-nvme mailing list