diff mbox

[libibverbs,8/9] ibv_cmd_create_flow(): initialize flow_id->comp_mask

Message ID 91b57c9e4ef5f582df338a0e96ef4856f63c89bf.1412163687.git.ydroneaud@opteya.com (mailing list archive)
State Rejected
Headers show

Commit Message

Yann Droneaud Oct. 1, 2014, 11:49 a.m. UTC
ibv_cmd_create_flow() allocates and returns a struct ibv_flow,
but doesn't initialize its comp_mask field.

Link: http://marc.info/?i=cover.1412163687.git.ydroneaud@opteya.com
Fixes: 389de6a6ef4 ('Add receive flow steering support')
Cc: Hadar Hen Zion <hadarh@mellanox.com>
Cc: Or Gerlitz <ogerlitz@mellanox.com>
Cc: Matan Barak <matanb@mellanox.com>
Signed-off-by: Yann Droneaud <ydroneaud@opteya.com>
---
 src/cmd.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/src/cmd.c b/src/cmd.c
index dc155d6bf4c7..2f039f6852bb 100644
--- a/src/cmd.c
+++ b/src/cmd.c
@@ -1372,6 +1372,7 @@  struct ibv_flow *ibv_cmd_create_flow(struct ibv_qp *qp,
 
 	flow_id->context = qp->context;
 	flow_id->handle = resp.flow_handle;
+	flow_id->comp_mask = 0;
 	return flow_id;
 err:
 	free(flow_id);