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

Christoph Hellwig hch at lst.de
Wed Jan 20 11:48:24 EST 2021


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")



More information about the Linux-nvme mailing list