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

Commit 6ed89b95 authored by Ralph Campbell's avatar Ralph Campbell Committed by Roland Dreier
Browse files

IB/ipath: Fix two more spin lock problems



Fix a missing unlock in ipath_rc_rcv_resp() and remove an extra unlock
from ipath_rc_rcv_error().

Signed-off-by: default avatarRalph Campbell <ralph.campbell@qlogic.com>
Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
parent 1a70a05d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1257,6 +1257,7 @@ static inline void ipath_rc_rcv_resp(struct ipath_ibdev *dev,
	wc.dlid_path_bits = 0;
	wc.port_num = 0;
	ipath_sqerror_qp(qp, &wc);
	spin_unlock_irqrestore(&qp->s_lock, flags);
bail:
	return;
}
@@ -1436,7 +1437,6 @@ static inline int ipath_rc_rcv_error(struct ipath_ibdev *dev,
		break;
	}
	qp->r_nak_state = 0;
	spin_unlock_irq(&qp->s_lock);
	tasklet_hi_schedule(&qp->s_task);

unlock_done: