diff options
author | Dave Olson <dave.olson@qlogic.com> | 2008-04-17 00:01:12 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2008-04-17 00:01:12 -0400 |
commit | 5d1ce03dd335abaef50dc615137cac2a22c5cee0 (patch) | |
tree | cd9cdfde7969791c7d1f3a739353a89edaeb24fc /drivers/infiniband/hw | |
parent | 6ca2abf4c02fb3e35247a985c2b6f5834e995033 (diff) |
IB/ipath: Shared context code needs to be sure device is usable
The code was checking if units are present, but not that present units
were usable (link up, etc.)
Signed-off-by: Dave Olson <dave.olson@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw')
-rw-r--r-- | drivers/infiniband/hw/ipath/ipath_file_ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_file_ops.c b/drivers/infiniband/hw/ipath/ipath_file_ops.c index 7e025c8e01b6..219b62d32eed 100644 --- a/drivers/infiniband/hw/ipath/ipath_file_ops.c +++ b/drivers/infiniband/hw/ipath/ipath_file_ops.c | |||
@@ -1760,7 +1760,7 @@ static int find_shared_port(struct file *fp, | |||
1760 | for (ndev = 0; ndev < devmax; ndev++) { | 1760 | for (ndev = 0; ndev < devmax; ndev++) { |
1761 | struct ipath_devdata *dd = ipath_lookup(ndev); | 1761 | struct ipath_devdata *dd = ipath_lookup(ndev); |
1762 | 1762 | ||
1763 | if (!dd) | 1763 | if (!usable(dd)) |
1764 | continue; | 1764 | continue; |
1765 | for (i = 1; i < dd->ipath_cfgports; i++) { | 1765 | for (i = 1; i < dd->ipath_cfgports; i++) { |
1766 | struct ipath_portdata *pd = dd->ipath_pd[i]; | 1766 | struct ipath_portdata *pd = dd->ipath_pd[i]; |