diff options
Diffstat (limited to 'drivers/infiniband/hw/mlx5/mr.c')
-rw-r--r-- | drivers/infiniband/hw/mlx5/mr.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/infiniband/hw/mlx5/mr.c b/drivers/infiniband/hw/mlx5/mr.c index 0dfd379b9bad..54a15b5d336d 100644 --- a/drivers/infiniband/hw/mlx5/mr.c +++ b/drivers/infiniband/hw/mlx5/mr.c | |||
@@ -1114,19 +1114,7 @@ struct ib_mr *mlx5_ib_reg_user_mr(struct ib_pd *pd, u64 start, u64 length, | |||
1114 | return &mr->ibmr; | 1114 | return &mr->ibmr; |
1115 | 1115 | ||
1116 | error: | 1116 | error: |
1117 | /* | ||
1118 | * Destroy the umem *before* destroying the MR, to ensure we | ||
1119 | * will not have any in-flight notifiers when destroying the | ||
1120 | * MR. | ||
1121 | * | ||
1122 | * As the MR is completely invalid to begin with, and this | ||
1123 | * error path is only taken if we can't push the mr entry into | ||
1124 | * the pagefault tree, this is safe. | ||
1125 | */ | ||
1126 | |||
1127 | ib_umem_release(umem); | 1117 | ib_umem_release(umem); |
1128 | /* Kill the MR, and return an error code. */ | ||
1129 | clean_mr(mr); | ||
1130 | return ERR_PTR(err); | 1118 | return ERR_PTR(err); |
1131 | } | 1119 | } |
1132 | 1120 | ||