projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2322d17
)
RDMA/rxe: Warn if mcast memory is not freed
author
Bob Pearson
<rpearsonhpe@gmail.com>
Wed, 23 Feb 2022 23:07:03 +0000
(17:07 -0600)
committer
Jason Gunthorpe
<jgg@nvidia.com>
Thu, 24 Feb 2022 00:29:15 +0000
(20:29 -0400)
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>
drivers/infiniband/sw/rxe/rxe.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/sw/rxe/rxe.c
b/drivers/infiniband/sw/rxe/rxe.c
index 3520eb2db685d8e16076ae7ce2ce90339374dee5..fce3994d8f7a8c91c5ef45df411b75de2bba5e3e 100644
(file)
--- 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);
}