mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-19 00:54:41 +08:00
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>
This commit is contained in:
parent
2322d17abf
commit
6a8a2e473b
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user