Message ID | 82324f6f32d600f6635d3419a3f821771933ef5c.1412163687.git.ydroneaud@opteya.com (mailing list archive) |
---|---|
State | Rejected |
Headers | show |
diff --git a/src/cmd.c b/src/cmd.c index b281082f2f4d..d057494260ee 100644 --- a/src/cmd.c +++ b/src/cmd.c @@ -1082,6 +1082,7 @@ int ibv_cmd_post_recv(struct ibv_qp *ibqp, struct ibv_recv_wr *wr, for (i = wr; i; i = i->next) { tmp->wr_id = i->wr_id; tmp->num_sge = i->num_sge; + tmp->reserved = 0; if (tmp->num_sge) { memcpy(s, i->sg_list, tmp->num_sge * sizeof *s);
Properly initialize data structure exchanged with kernel uverbs layer: - may remove valgrind spurious warnings; - may allow to use the field later for future expansion. Link: http://marc.info/?i=cover.1412163687.git.ydroneaud@opteya.com Fixes: eb0663777c24 ('Add support for new datapath kernel commands') Signed-off-by: Yann Droneaud <ydroneaud@opteya.com> --- src/cmd.c | 1 + 1 file changed, 1 insertion(+)