Skip to content

Commit

Permalink
RDMA/rxe: Warn if mcast memory is not freed
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bob Pearson authored and Jason Gunthorpe committed Feb 24, 2022
1 parent 2322d17 commit 6a8a2e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/infiniband/sw/rxe/rxe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 6a8a2e4

Please sign in to comment.