aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/sw
diff options
context:
space:
mode:
authorBob Pearson <rpearsonhpe@gmail.com>2022-02-23 17:07:03 -0600
committerJason Gunthorpe <jgg@nvidia.com>2022-02-23 20:29:15 -0400
commit6a8a2e473b986191f4113c485905ea8462724d58 (patch)
tree6c8123def0cf793d2440233123d54c726cee4da6 /drivers/infiniband/sw
parentRDMA/irdma: Remove excess error variables (diff)
downloadlinux-dev-6a8a2e473b986191f4113c485905ea8462724d58.tar.xz
linux-dev-6a8a2e473b986191f4113c485905ea8462724d58.zip
RDMA/rxe: Warn if mcast memory is not freed
Print a warning if memory allocated by mcast is not cleared when the rxe driver is unloaded. Link: https://lore.kernel.org/r/20220223230706.50332-2-rpearsonhpe@gmail.com Signed-off-by: Bob Pearson <rpearsonhpe@gmail.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband/sw')
-rw-r--r--drivers/infiniband/sw/rxe/rxe.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/sw/rxe/rxe.c b/drivers/infiniband/sw/rxe/rxe.c
index 3520eb2db685..fce3994d8f7a 100644
--- a/drivers/infiniband/sw/rxe/rxe.c
+++ b/drivers/infiniband/sw/rxe/rxe.c
@@ -29,6 +29,8 @@ void rxe_dealloc(struct ib_device *ib_dev)
rxe_pool_cleanup(&rxe->mr_pool);
rxe_pool_cleanup(&rxe->mw_pool);
+ WARN_ON(!RB_EMPTY_ROOT(&rxe->mcg_tree));
+
if (rxe->tfm)
crypto_free_shash(rxe->tfm);
}