net/mlx4_core: Add missing iounmap() in error path
authorZou Wei <zou_wei@huawei.com>
Fri, 24 Apr 2020 13:53:14 +0000 (21:53 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 26 Apr 2020 03:43:56 +0000 (20:43 -0700)
commitc90af587a9eee697e2d89683113707cada70116a
tree70e9f5e88f6b9d9767c7b01c8ff129bded03c8a5
parentdf346f1aac6cef551b69d788b022a942270dc17b
net/mlx4_core: Add missing iounmap() in error path

This fixes the following coccicheck warning:

drivers/net/ethernet/mellanox/mlx4/crdump.c:200:2-8: ERROR: missing iounmap;
ioremap on line 190 and execution via conditional on line 198

Fixes: 7ef19d3b1d5e ("devlink: report error once U32_MAX snapshot ids have been used")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
Reviewed-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/crdump.c