diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-01-08 14:05:28 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-01-08 14:05:28 -0800 |
commit | 3c8ad49b015eb115fbd6982f56d530f53cf57f84 (patch) | |
tree | 6a254fd78622a61443a61cc893d0a84a9413bbd5 /drivers/net | |
parent | 9993b364d2c42acc2949ddbc6371405e17829e32 (diff) | |
parent | 0139fd7c2ffd830e571d56f60198306ac24b726e (diff) | |
download | op-kernel-dev-3c8ad49b015eb115fbd6982f56d530f53cf57f84.zip op-kernel-dev-3c8ad49b015eb115fbd6982f56d530f53cf57f84.tar.gz |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland/infiniband:
IB/addr: Correct CONFIG_IPv6 to CONFIG_IPV6
mlx4_core: Fix cleanup in __mlx4_init_one() error path
IB/mlx4: Fix queue overflow check in post_recv
IB/mlx4: Initialize SRQ scatter entries when creating an SRQ
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/mlx4/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/mlx4/main.c b/drivers/net/mlx4/main.c index 291a505..3cf56d9 100644 --- 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); |