diff options
author | Bart Van Assche <bart.vanassche@wdc.com> | 2018-03-05 18:58:33 +0100 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-03-07 00:00:51 +0100 |
commit | 41904439479e94dd61ac499312e8d8266b13f81d (patch) | |
tree | dcb6a5ff77c947b4145dab892fb2e178c9913bf5 /drivers/infiniband/hw/hfi1/driver.c | |
parent | infiniband: hw: Drop unnecessary continue (diff) | |
download | linux-41904439479e94dd61ac499312e8d8266b13f81d.tar.xz linux-41904439479e94dd61ac499312e8d8266b13f81d.zip |
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 <bart.vanassche@wdc.com>
Cc: Mike Marciniszyn <mike.marciniszyn@intel.com>
Cc: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/hfi1/driver.c')
-rw-r--r-- | drivers/infiniband/hw/hfi1/driver.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/hfi1/driver.c b/drivers/infiniband/hw/hfi1/driver.c index addc68e83606..46d1475b2154 100644 --- a/drivers/infiniband/hw/hfi1/driver.c +++ b/drivers/infiniband/hw/hfi1/driver.c @@ -390,6 +390,7 @@ static void rcv_hdrerr(struct hfi1_ctxtdata *rcd, struct hfi1_pportdata *ppd, svc_type = IB_CC_SVCTYPE_UC; break; default: + rcu_read_unlock(); goto drop; } |