Commit c5930a1a authored by Zhu Yanjun's avatar Zhu Yanjun Committed by Leon Romanovsky

RDMA/rtrs: Fix the problem of variable not initialized fully

No functionality change. The variable which is not initialized fully
will introduce potential risks.
Signed-off-by: default avatarZhu Yanjun <yanjun.zhu@linux.dev>
Link: https://lore.kernel.org/r/20230919020806.534183-1-yanjun.zhu@intel.comSigned-off-by: default avatarLeon Romanovsky <leon@kernel.org>
parent 20a02837
......@@ -255,7 +255,7 @@ static int create_cq(struct rtrs_con *con, int cq_vector, int nr_cqe,
static int create_qp(struct rtrs_con *con, struct ib_pd *pd,
u32 max_send_wr, u32 max_recv_wr, u32 max_sge)
{
struct ib_qp_init_attr init_attr = {NULL};
struct ib_qp_init_attr init_attr = {};
struct rdma_cm_id *cm_id = con->cm_id;
int ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment