]> git.ipfire.org Git - people/arne_f/kernel.git/commit
RDMA/vmw_pvrdma: Fix memory leak on pvrdma_pci_remove
authorKamal Heib <kamalheib1@gmail.com>
Wed, 3 Apr 2019 13:52:54 +0000 (16:52 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 May 2019 15:53:12 +0000 (17:53 +0200)
commitebe0de059b02ded2516c04cc4d622e939f3be525
tree9607e3dc43f1bce3fbb0646f0ecd068647c85dea
parent72c7689211ddf097aab67c9a7c043ef108418d2f
RDMA/vmw_pvrdma: Fix memory leak on pvrdma_pci_remove

[ Upstream commit ea7a5c706fa49273cf6d1d9def053ecb50db2076 ]

Make sure to free the DSR on pvrdma_pci_remove() to avoid the memory leak.

Fixes: 29c8d9eba550 ("IB: Add vmw_pvrdma driver")
Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
Acked-by: Adit Ranadive <aditr@vmware.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c