summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMaor Gottlieb <maorg@nvidia.com>2022-08-29 12:02:29 +0300
committerLeon Romanovsky <leon@kernel.org>2022-09-05 14:49:57 +0300
commit9b7d4be967f16f79a2283b2338709fcc750313ee (patch)
treeddc47367735b776d38e9b8597a21eb6ed01379cc /net
parent74b30b3ad5cec95d2647e796d10137438a098bc1 (diff)
downloadlinux-9b7d4be967f16f79a2283b2338709fcc750313ee.tar.bz2
RDMA/mlx5: Fix UMR cleanup on error flow of driver init
The cited commit removed from the cleanup flow of umr the checks if the resources were created. This could lead to null-ptr-deref in case that we had failure in mlx5_ib_stage_ib_reg_init stage. Fix it by adding new state to the umr that can say if the resources were created or not and check it in the umr cleanup flow before destroying the resources. Fixes: 04876c12c19e ("RDMA/mlx5: Move init and cleanup of UMR to umr.c") Reviewed-by: Michael Guralnik <michaelgur@nvidia.com> Signed-off-by: Maor Gottlieb <maorg@nvidia.com> Link: https://lore.kernel.org/r/4cfa61386cf202e9ce330e8d228ce3b25a36326e.1661763459.git.leonro@nvidia.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions