Commit b081808
RDMA/mlx5: Avoid memory leak in case of XRCD dealloc failure
Failure in XRCD FW deallocation command leaves memory leaked and
returns error to the user which he can't do anything about it.
This patch changes behavior to always free memory and always return
success to the user.
Fixes: e126ba9 ("mlx5: Add driver for Mellanox Connect-IB adapters")
Reviewed-by: Majd Dibbiny <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
Reviewed-by: Yuval Shaia <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>1 parent f23a535 commit b081808
1 file changed
+1
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5067 | 5067 | | |
5068 | 5068 | | |
5069 | 5069 | | |
5070 | | - | |
| 5070 | + | |
5071 | 5071 | | |
5072 | | - | |
5073 | | - | |
5074 | 5072 | | |
5075 | 5073 | | |
5076 | | - | |
5077 | 5074 | | |
5078 | 5075 | | |
5079 | 5076 | | |
| |||
0 commit comments