aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-add.c
diff options
context:
space:
mode:
authorJason Gunthorpe <[email protected]>2020-07-27 12:57:12 +0300
committerJason Gunthorpe <[email protected]>2020-07-27 11:50:20 -0300
commit5351a56b1a4ceafd7a17ebfdf3cda430cdfd365d (patch)
treea7fca9b130689e77a13168c5aacf2f426f5a2ab6 /lib/mpi/mpi-add.c
parent31142a4ba617f5aa8aefdf1c65561ca30d43f360 (diff)
RDMA/mlx5: Fix prefetch memory leak if get_prefetchable_mr fails
destroy_prefetch_work() must always be called if the work is not going to be queued. The num_sge also should have been set to i, not i-1 which avoids the condition where it shouldn't have been called in the first place. Cc: [email protected] Fixes: fb985e278a30 ("RDMA/mlx5: Use SRCU properly in ODP prefetch") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Leon Romanovsky <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-add.c')
0 files changed, 0 insertions, 0 deletions