Commit d810c54
RDMA/mlx5: Avoid memory leak in case of XRCD dealloc failure
[ Upstream commit b081808 ]
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]>
Signed-off-by: Sasha Levin <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>1 parent 0bddd43 commit d810c54
1 file changed
+1
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4636 | 4636 | | |
4637 | 4637 | | |
4638 | 4638 | | |
4639 | | - | |
| 4639 | + | |
4640 | 4640 | | |
4641 | | - | |
4642 | | - | |
4643 | 4641 | | |
4644 | 4642 | | |
4645 | | - | |
4646 | 4643 | | |
4647 | 4644 | | |
4648 | 4645 | | |
| |||
0 commit comments