projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68dd43a
)
IB/ipath: iterate over correct number of ports during reset
author
Bryan O'Sullivan
<bos@pathscale.com>
Mon, 24 Apr 2006 21:22:59 +0000
(14:22 -0700)
committer
Roland Dreier
<rolandd@cisco.com>
Mon, 1 May 2006 19:14:13 +0000
(12:14 -0700)
Signed-off-by: Bryan O'Sullivan <bos@pathscale.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ipath/ipath_driver.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/ipath/ipath_driver.c
b/drivers/infiniband/hw/ipath/ipath_driver.c
index 7ff95b72d1fc93e97ab6083f1be09bcbd97cd835..398add4d4cb1f4a7a5d0a7923b8bf6ce23bc8da5 100644
(file)
--- 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",