From: Jack Morgenstein Date: Tue, 30 Dec 2014 09:59:50 +0000 (+0200) Subject: net/mlx4_core: Fix error flow in mlx4_init_hca() X-Git-Tag: fixes-v4.0-rc1~337^2~11^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0d012509f2ecee9af1857ccacac33b2266c6ce8;p=pandora-kernel.git 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 Signed-off-by: Or Gerlitz Signed-off-by: David S. Miller --- Reading git-diff-tree failed