Message ID | 14bdb44b784ae631de9a9f35a7cf28799fd39473.1412163687.git.ydroneaud@opteya.com (mailing list archive) |
---|---|
State | Rejected |
Headers | show |
diff --git a/src/cmd.c b/src/cmd.c index 8d8f7e8294e5..f80ce4d30832 100644 --- a/src/cmd.c +++ b/src/cmd.c @@ -463,6 +463,7 @@ int ibv_cmd_create_srq_ex(struct ibv_context *context, cmd->max_wr = attr_ex->attr.max_wr; cmd->max_sge = attr_ex->attr.max_sge; cmd->srq_limit = attr_ex->attr.srq_limit; + cmd->reserved = 0; cmd->srq_type = (attr_ex->comp_mask & IBV_SRQ_INIT_ATTR_TYPE) ? attr_ex->srq_type : IBV_SRQT_BASIC;
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: 40c1365b2198 ('Add support for XRC SRQs') Cc: Sean Hefty <sean.hefty@intel.com> Cc: Yishai Hadas <yishaih@mellanox.com> Signed-off-by: Yann Droneaud <ydroneaud@opteya.com> --- src/cmd.c | 1 + 1 file changed, 1 insertion(+)