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)
commitd0d012509f2ecee9af1857ccacac33b2266c6ce8
tree21c623ec85ad80b7c88c5986972c1d519112eb05
parenta51e0df4c1e06afd7aba84496c14238e6b363caa
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: a0eacca948d2 ('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