]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita3027903408930a29fd6ea209e0361d4c6e237ff
tree70e9f5e88f6b9d9767c7b01c8ff129bded03c8a5
parenta99dbb6bd45b33e6e4996949255946994951ad86
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: 56a608bb8d25 ("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