From: Bryan O'Sullivan Date: Mon, 24 Apr 2006 21:22:59 +0000 (-0700) Subject: IB/ipath: iterate over correct number of ports during reset X-Git-Tag: v2.6.17-rc4~64^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=23e86a4584606a08393e0ad3a5ca27b19a3de374;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git IB/ipath: iterate over correct number of ports during reset Signed-off-by: Bryan O'Sullivan Signed-off-by: Roland Dreier --- diff --git a/drivers/infiniband/hw/ipath/ipath_driver.c b/drivers/infiniband/hw/ipath/ipath_driver.c index 7ff95b7..398add4 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",