projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b94607
)
mlx4_core: Fix cleanup in __mlx4_init_one() error path
author
Eli Cohen
<eli@mellanox.co.il>
Wed, 6 Jan 2010 20:54:39 +0000
(12:54 -0800)
committer
Roland Dreier
<rolandd@cisco.com>
Wed, 6 Jan 2010 20:54:39 +0000
(12:54 -0800)
If mlx4_init_port_info() fails, cleanup the initialized ports only.
Signed-off-by: Eli Cohen <eli@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/net/mlx4/main.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/mlx4/main.c
b/drivers/net/mlx4/main.c
index 291a505fd4fcaac388d86597fc0ff8540bd9feea..3cf56d90d85924551c86252ac1343226173a3630 100644
(file)
--- a/
drivers/net/mlx4/main.c
+++ b/
drivers/net/mlx4/main.c
@@
-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);