Skip to content

Commit 6ed89b9

Browse files
Ralph CampbellRoland Dreier
authored andcommitted
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: Ralph Campbell <[email protected]> Signed-off-by: Roland Dreier <[email protected]>
1 parent 1a70a05 commit 6ed89b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/infiniband/hw/ipath/ipath_rc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1257,6 +1257,7 @@ static inline void ipath_rc_rcv_resp(struct ipath_ibdev *dev,
12571257
wc.dlid_path_bits = 0;
12581258
wc.port_num = 0;
12591259
ipath_sqerror_qp(qp, &wc);
1260+
spin_unlock_irqrestore(&qp->s_lock, flags);
12601261
bail:
12611262
return;
12621263
}
@@ -1436,7 +1437,6 @@ static inline int ipath_rc_rcv_error(struct ipath_ibdev *dev,
14361437
break;
14371438
}
14381439
qp->r_nak_state = 0;
1439-
spin_unlock_irq(&qp->s_lock);
14401440
tasklet_hi_schedule(&qp->s_task);
14411441

14421442
unlock_done:

0 commit comments

Comments
 (0)