mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 10:09:10 +02:00
RDMA/mlx5: Release the HW‑provided UAR index rather than the SW one
Free the UAR index returned by the hardware.
Fixes: 4ed131d0bb ("IB/mlx5: Expose dynamic mmap allocation")
Link: https://patch.msgid.link/r/20260611-fix-uar-release-v1-1-f5464d845dbf@nvidia.com
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
This commit is contained in:
parent
d881d60223
commit
449ae79271
|
|
@ -2683,7 +2683,7 @@ static int uar_mmap(struct mlx5_ib_dev *dev, enum mlx5_ib_mmap_cmd cmd,
|
|||
if (!dyn_uar)
|
||||
return err;
|
||||
|
||||
mlx5_cmd_uar_dealloc(dev->mdev, idx, context->devx_uid);
|
||||
mlx5_cmd_uar_dealloc(dev->mdev, uar_index, context->devx_uid);
|
||||
|
||||
free_bfreg:
|
||||
mlx5_ib_free_bfreg(dev, bfregi, bfreg_dyn_idx);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user