Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 322754
b: refs/heads/master
c: bef772e
h: refs/heads/master
v: v3
  • Loading branch information
Aviad Yehezkel authored and David S. Miller committed Sep 7, 2012
1 parent 1cada83 commit e43e6a1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 60d31c1475f20b6966f7efbd646b1123d0fba5b1
refs/heads/master: bef772eb06051f49e84c3168f189b65074f19c3d
13 changes: 7 additions & 6 deletions trunk/drivers/net/ethernet/mellanox/mlx4/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1234,13 +1234,13 @@ static int mlx4_init_hca(struct mlx4_dev *dev)
mlx4_info(dev, "non-primary physical function, skipping.\n");
else
mlx4_err(dev, "QUERY_FW command failed, aborting.\n");
goto unmap_bf;
return err;
}

err = mlx4_load_fw(dev);
if (err) {
mlx4_err(dev, "Failed to start FW, aborting.\n");
goto unmap_bf;
return err;
}

mlx4_cfg.log_pg_sz_m = 1;
Expand Down Expand Up @@ -1304,7 +1304,7 @@ static int mlx4_init_hca(struct mlx4_dev *dev)
err = mlx4_init_slave(dev);
if (err) {
mlx4_err(dev, "Failed to initialize slave\n");
goto unmap_bf;
return err;
}

err = mlx4_slave_cap(dev);
Expand All @@ -1324,14 +1324,17 @@ static int mlx4_init_hca(struct mlx4_dev *dev)
err = mlx4_QUERY_ADAPTER(dev, &adapter);
if (err) {
mlx4_err(dev, "QUERY_ADAPTER command failed, aborting.\n");
goto err_close;
goto unmap_bf;
}

priv->eq_table.inta_pin = adapter.inta_pin;
memcpy(dev->board_id, adapter.board_id, sizeof dev->board_id);

return 0;

unmap_bf:
unmap_bf_area(dev);

err_close:
mlx4_close_hca(dev);

Expand All @@ -1344,8 +1347,6 @@ static int mlx4_init_hca(struct mlx4_dev *dev)
mlx4_UNMAP_FA(dev);
mlx4_free_icm(dev, priv->fw.fw_icm, 0);
}
unmap_bf:
unmap_bf_area(dev);
return err;
}

Expand Down

0 comments on commit e43e6a1

Please sign in to comment.