NVMe Fabrics RDMA: Initialize a variable.

Make sure q_ctx is fully initialized. Fixes #17233.


(cherry picked from commit e29c934d72)
This commit is contained in:
Gerald Combs 2021-02-15 18:28:57 +00:00 committed by Jaap Keuter
parent b2c58d020c
commit 3fb8be3b91
1 changed files with 1 additions and 1 deletions

View File

@ -299,7 +299,7 @@ find_add_q_ctx(packet_info *pinfo, conversation_t *conv)
q_ctx = (struct nvme_rdma_q_ctx*)conversation_get_proto_data(conv, proto_nvme_rdma);
if (!q_ctx) {
qid = find_nvme_qid(pinfo);
q_ctx = wmem_new(wmem_file_scope(), struct nvme_rdma_q_ctx);
q_ctx = wmem_new0(wmem_file_scope(), struct nvme_rdma_q_ctx);
q_ctx->n_q_ctx.pending_cmds = wmem_tree_new(wmem_file_scope());
q_ctx->n_q_ctx.done_cmds = wmem_tree_new(wmem_file_scope());
q_ctx->n_q_ctx.data_requests = wmem_tree_new(wmem_file_scope());