summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorBryan O'Sullivan <bos@pathscale.com>2006-04-24 23:22:59 +0200
committerRoland Dreier <rolandd@cisco.com>2006-05-01 21:14:13 +0200
commit23e86a4584606a08393e0ad3a5ca27b19a3de374 (patch)
treeb0f7c792c53611402e31bb9405d05214467fa3d1 /drivers
parentIB/ipath: set up 32-bit DMA mask if 64-bit setup fails (diff)
downloadlinux-23e86a4584606a08393e0ad3a5ca27b19a3de374.tar.xz
linux-23e86a4584606a08393e0ad3a5ca27b19a3de374.zip
IB/ipath: iterate over correct number of ports during reset
Signed-off-by: Bryan O'Sullivan <bos@pathscale.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/infiniband/hw/ipath/ipath_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_driver.c b/drivers/infiniband/hw/ipath/ipath_driver.c
index 7ff95b72d1fc..398add4d4cb1 100644
--- a/drivers/infiniband/hw/ipath/ipath_driver.c
+++ b/drivers/infiniband/hw/ipath/ipath_driver.c
@@ -1959,7 +1959,7 @@ int ipath_reset_device(int unit)
}
if (dd->ipath_pd)
- for (i = 1; i < dd->ipath_portcnt; i++) {
+ for (i = 1; i < dd->ipath_cfgports; i++) {
if (dd->ipath_pd[i] && dd->ipath_pd[i]->port_cnt) {
ipath_dbg("unit %u port %d is in use "
"(PID %u cmd %s), can't reset\n",