Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5d1ce03d authored by Dave Olson's avatar Dave Olson Committed by Roland Dreier
Browse files

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: default avatarDave Olson <dave.olson@qlogic.com>
Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
parent 6ca2abf4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1760,7 +1760,7 @@ static int find_shared_port(struct file *fp,
	for (ndev = 0; ndev < devmax; ndev++) {
		struct ipath_devdata *dd = ipath_lookup(ndev);

		if (!dd)
		if (!usable(dd))
			continue;
		for (i = 1; i < dd->ipath_cfgports; i++) {
			struct ipath_portdata *pd = dd->ipath_pd[i];