]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/odp: Do not leak dma maps when working with huge pages
authorJason Gunthorpe <jgg@mellanox.com>
Fri, 14 Jun 2019 00:46:45 +0000 (21:46 -0300)
committerDoug Ledford <dledford@redhat.com>
Fri, 21 Jun 2019 01:52:47 +0000 (21:52 -0400)
commit74ae69a48f5dd0978c67aa7b63de08ffdd30c15b
tree9c2dd737f9a0fabb72ac219e3948279c78a9c538
parentc6ffcbea6108b9571a3f9b8968ab8cf97ad3085c
RDMA/odp: Do not leak dma maps when working with huge pages

The ib_dma_unmap_page() must match the length of the ib_dma_map_page(),
which is based on odp_shift. Otherwise iommu resources under this API
will not be properly freed.

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/umem_odp.c