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

Commit 23e86a45 authored by Bryan O'Sullivan's avatar Bryan O'Sullivan Committed by Roland Dreier
Browse files

IB/ipath: iterate over correct number of ports during reset

parent 68dd43a1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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",