Skip to content

Commit 4190443

Browse files
KAGA-KOKOjgunthorpe
authored andcommitted
IB/hfi1: Add a missing rcu_read_unlock()
This patch avoids that sparse reports the following: drivers/infiniband/hw/hfi1/driver.c:251:13: warning: context imbalance in 'rcv_hdrerr' - different lock contexts for basic block Signed-off-by: Bart Van Assche <[email protected]> Cc: Mike Marciniszyn <[email protected]> Cc: Dennis Dalessandro <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent 666fe24 commit 4190443

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/infiniband/hw/hfi1/driver.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,7 @@ static void rcv_hdrerr(struct hfi1_ctxtdata *rcd, struct hfi1_pportdata *ppd,
390390
svc_type = IB_CC_SVCTYPE_UC;
391391
break;
392392
default:
393+
rcu_read_unlock();
393394
goto drop;
394395
}
395396

0 commit comments

Comments
 (0)