]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_core: Fix error flow in mlx4_init_hca()
authorJack Morgenstein <jackm@dev.mellanox.co.il>
Tue, 30 Dec 2014 09:59:50 +0000 (11:59 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Jan 2015 20:41:29 +0000 (15:41 -0500)
commit1d76a53b0c88e9f361c04aaddf60cda5e20f3f63
tree21c623ec85ad80b7c88c5986972c1d519112eb05
parent280a8c7e84b3ee74ce413638d82d463c7aae80d7
net/mlx4_core: Fix error flow in mlx4_init_hca()

We shouldn't call UNMAP_FA here, this is done in mlx4_load_one.

If mlx4_query_func fails, we need to invoke CLOSE_HCA for both
native and master.

Fixes: 9d11c1b2aa49 ('net/mlx4_core: Refactor mlx4_load_one')
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/main.c