RDMA/vmw_pvrdma: Call ib_umem_release on destroy QP path
authorBryan Tan <bryantan@vmware.com>
Wed, 20 Dec 2017 17:49:03 +0000 (09:49 -0800)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 21 Dec 2017 23:06:06 +0000 (16:06 -0700)
commit17748056ce123ee37fb7382bc698fc721e3c4a09
tree9096a58055eb7db22c7bf370d9a79f767c8c973c
parentd14587334580bc94d3ee11e8320e0c157f91ae8f
RDMA/vmw_pvrdma: Call ib_umem_release on destroy QP path

The QP cleanup did not previously call ib_umem_release,
resulting in a user-triggerable kernel resource leak.

Fixes: 29c8d9eba550 ("IB: Add vmw_pvrdma driver")
Reviewed-by: Adit Ranadive <aditr@vmware.com>
Reviewed-by: Aditya Sarwade <asarwade@vmware.com>
Reviewed-by: Jorgen Hansen <jhansen@vmware.com>
Signed-off-by: Bryan Tan <bryantan@vmware.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c