aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorHarish Chegondi <harish.chegondi@intel.com>2016-03-05 08:49:24 -0800
committerDoug Ledford <dledford@redhat.com>2016-03-17 15:55:11 -0400
commit42d6ec19c918cb5bc6d14769e24240dce8f81687 (patch)
tree099661adc387320f45e596f1057198faea990e3f /drivers/staging
parentstaging/rdma/hfi1: Fix memory leaks (diff)
downloadlinux-dev-42d6ec19c918cb5bc6d14769e24240dce8f81687.tar.xz
linux-dev-42d6ec19c918cb5bc6d14769e24240dce8f81687.zip
IB/hfi1: Add the break statement that was removed in an earlier patch
The break statement was unintentionally removed in this patch commit 41ca419abc0ca7ee65d765408cdc1a7fed2897a3 ("staging/rdma/hfi1: Remove hfi1 MR and hfi1 specific qp type") Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com> Signed-off-by: Harish Chegondi <harish.chegondi@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/rdma/hfi1/ruc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/rdma/hfi1/ruc.c b/drivers/staging/rdma/hfi1/ruc.c
index 5d84981a6b51..aa53859503ee 100644
--- a/drivers/staging/rdma/hfi1/ruc.c
+++ b/drivers/staging/rdma/hfi1/ruc.c
@@ -470,6 +470,7 @@ again:
goto inv_err;
do_write:
if (wqe->length == 0)
+ break;
if (unlikely(!rvt_rkey_ok(qp, &qp->r_sge.sge, wqe->length,
wqe->rdma_wr.remote_addr,
wqe->rdma_wr.rkey,