|
@@ -1174,7 +1174,7 @@ static int __mlx4_init_one(struct pci_dev *pdev, const struct pci_device_id *id)
|
|
return 0;
|
|
return 0;
|
|
|
|
|
|
err_port:
|
|
err_port:
|
|
- for (port = 1; port <= dev->caps.num_ports; port++)
|
|
|
|
|
|
+ for (--port; port >= 1; --port)
|
|
mlx4_cleanup_port_info(&priv->port[port]);
|
|
mlx4_cleanup_port_info(&priv->port[port]);
|
|
|
|
|
|
mlx4_cleanup_mcg_table(dev);
|
|
mlx4_cleanup_mcg_table(dev);
|