]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/rw: Fix error flow during RDMA context initialization
authorMax Gurtovoy <maxg@mellanox.com>
Thu, 20 Feb 2020 10:08:18 +0000 (12:08 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 20 Feb 2020 17:19:21 +0000 (13:19 -0400)
commit23cfb82b0dd65549bf2ad2062eb9e82276c3678d
treecb1d18f1fda10418f9f0d77bc4693abaf6a05ff8
parent33aeb4219b6dbe54badf867f4e5a97eb426d1a66
RDMA/rw: Fix error flow during RDMA context initialization

In case the SGL was mapped for P2P DMA operation, we must unmap it using
pci_p2pdma_unmap_sg during the error unwind of rdma_rw_ctx_init()

Fixes: 06e20eae0d52 ("PCI/P2PDMA: Introduce pci_p2pdma_unmap_sg()")
Link: https://lore.kernel.org/r/20200220100819.41860-1-maxg@mellanox.com
Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/rw.c