mlx4_core: Cleanup bug in __mlx4_init_one()
Subsystems (2)
PATCH v2 1/1 mlx4_core: Cleanup bug in __mlx4_init_one()
If mlx4_init_port_info() fails, cleanup the initialized ports only.
Signed-off-by Eli Cohen <eli-VPRAkNaXOzVS1MOuV/[email protected]>
---
Changes: rebase the patch on Roland's for-next branch
drivers/net/mlx4/main.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/mlx4/main.c +1 -1
@@ -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);
Signature · 6 lines
1.6.5.5 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
thanks, applied.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html