linux_dsm_epyc7002/drivers/net/ethernet/mellanox
Gal Pressman 5f8a02a441 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: 0ba422410b ('net/mlx5: Fix global UAR mapping')
Signed-off-by: Gal Pressman <galp@mellanox.com>
Reported-by: Doron Tsur <doront@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-05-03 13:37:25 -04:00
..
mlx4 net/mlx4_en: fix spurious timestamping callbacks 2016-04-26 01:13:18 -04:00
mlx5/core net/mlx5: Unmap only the relevant IO memory mapping 2016-05-03 13:37:25 -04:00
mlxsw mlxsw: pci: Implement reset done check 2016-03-13 22:30:01 -04:00
Kconfig mlxsw: Introduce Mellanox switch driver core 2015-07-30 00:04:59 -07:00
Makefile mlxsw: Introduce Mellanox switch driver core 2015-07-30 00:04:59 -07:00