Ver código fonte

RDMA/cxgb4: Initialize reserved fields in a FW work request

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Steve Wise 11 anos atrás
pai
commit
c3f98fa291
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2 0
      drivers/infiniband/hw/cxgb4/qp.c

+ 2 - 0
drivers/infiniband/hw/cxgb4/qp.c

@@ -436,6 +436,8 @@ static int build_rdma_send(struct t4_sq *sq, union t4_wr *wqe,
 	default:
 		return -EINVAL;
 	}
+	wqe->send.r3 = 0;
+	wqe->send.r4 = 0;
 
 	plen = 0;
 	if (wr->num_sge) {