]> git.karo-electronics.de Git - linux-beck.git/commitdiff
IB/hfi1: Add the break statement that was removed in an earlier patch
authorHarish Chegondi <harish.chegondi@intel.com>
Sat, 5 Mar 2016 16:49:24 +0000 (08:49 -0800)
committerDoug Ledford <dledford@redhat.com>
Thu, 17 Mar 2016 19:55:11 +0000 (15:55 -0400)
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>
drivers/staging/rdma/hfi1/ruc.c

index 5d84981a6b51506fcee4e18d030b801387480ed7..aa53859503ee9af628cd388a52e213cb61da416c 100644 (file)
@@ -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,