Skip to content
Commit 5f8a02a4 authored by Gal Pressman's avatar Gal Pressman Committed by David S. Miller
Browse files

net/mlx5: Unmap only the relevant IO memory mapping

When freeing UAR the driver tries to unmap uar->map and uar->bf_map
which are mutually exclusive thus always unmapping a NULL pointer.
Make sure we only call iounmap() once, for the actual mapping.

Fixes: 0ba42241

 ('net/mlx5: Fix global UAR mapping')
Signed-off-by: default avatarGal Pressman <galp@mellanox.com>
Reported-by: default avatarDoron Tsur <doront@mellanox.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6071bd1a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment