iwlwifi: Recover TX flow stall due to stuck queue
[deliverable/linux.git] / drivers / net / mlx4 / main.c
index 58f7f979cd2b9861b2b49b68dfe6865bb8ae2926..8f6e816a7395f78dadfa12c7a64269ce820d0b7d 100644 (file)
@@ -1174,7 +1174,7 @@ static int __mlx4_init_one(struct pci_dev *pdev, const struct pci_device_id *id)
        return 0;
 
 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_mcg_table(dev);
This page took 0.024476 seconds and 5 git commands to generate.