Skip to content

Commit 2763c6b

Browse files
authored
Merge pull request #1736 from selvintxavier/init_req
bnxt_re/lib: Initialize the request structures in bnxt_re ABI
2 parents 6fe804e + ef0d818 commit 2763c6b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

providers/bnxt_re/verbs.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ struct ibv_cq *bnxt_re_create_cq(struct ibv_context *ibvctx, int ncqe,
331331
struct ibv_comp_channel *channel, int vec)
332332
{
333333
struct bnxt_re_cq *cq;
334-
struct ubnxt_re_cq cmd;
334+
struct ubnxt_re_cq cmd = {};
335335
struct ubnxt_re_cq_resp resp;
336336
struct bnxt_re_mmap_info minfo = {};
337337
int ret;
@@ -2053,7 +2053,7 @@ static struct ibv_qp *__bnxt_re_create_qp(struct ibv_context *ibvctx,
20532053
struct ubnxt_re_qp_resp resp = {};
20542054
struct bnxt_re_qattr qattr[2];
20552055
struct bnxt_re_qpcap *cap;
2056-
struct ubnxt_re_qp req;
2056+
struct ubnxt_re_qp req = {};
20572057
struct bnxt_re_qp *qp;
20582058
void *mem;
20592059

@@ -2786,7 +2786,7 @@ struct ibv_srq *bnxt_re_create_srq(struct ibv_pd *ibvpd,
27862786
struct bnxt_re_mmap_info minfo = {};
27872787
struct ubnxt_re_srq_resp resp = {};
27882788
struct bnxt_re_qattr qattr = {};
2789-
struct ubnxt_re_srq req;
2789+
struct ubnxt_re_srq req = {};
27902790
struct bnxt_re_srq *srq;
27912791
void *mem;
27922792
int ret;

0 commit comments

Comments
 (0)