]> www.infradead.org Git - users/jedix/linux-maple.git/commit
RDMA/cache: Release GID table even if leak is detected
authorLeon Romanovsky <leonro@nvidia.com>
Tue, 28 May 2024 12:52:51 +0000 (15:52 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 21 Jun 2024 13:17:44 +0000 (10:17 -0300)
commita92fbeac7e94a420b55570c10fe1b90e64da4025
tree1207f156a4cc9847449bb0a52a132c5aa472e88b
parentb7161db2d96fb23baffb1b3552a1f468fff74e69
RDMA/cache: Release GID table even if leak is detected

When the table is released, we nullify pointer to GID table, it means
that in case GID entry leak is detected, we will leak table too.

Delete code that prevents table destruction.

Fixes: b150c3862d21 ("IB/core: Introduce GID entry reference counts")
Link: https://lore.kernel.org/r/a62560af06ba82c88ef9194982bfa63d14768ff9.1716900410.git.leon@kernel.org
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/core/cache.c