diff options
author | Bob Pearson <rpearsonhpe@gmail.com> | 2022-02-24 02:07:03 +0300 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2022-02-24 03:29:15 +0300 |
commit | 6a8a2e473b986191f4113c485905ea8462724d58 (patch) | |
tree | 6c8123def0cf793d2440233123d54c726cee4da6 | |
parent | 2322d17abf0a6c90251e8c0e419620c537e2875f (diff) | |
download | linux-6a8a2e473b986191f4113c485905ea8462724d58.tar.xz |
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>
-rw-r--r-- | drivers/infiniband/sw/rxe/rxe.c | 2 |
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); } |