summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorZhu Yanjun <yanjun.zhu@linux.dev>2023-09-19 04:08:06 +0200
committerLeon Romanovsky <leon@kernel.org>2023-09-19 11:30:33 +0200
commitc5930a1aa08aafe6ffe15b5d28fe875f88f6ac86 (patch)
treef7c1a6f1f2347460a3dcac5fe51c0ac99b9b7859 /drivers/infiniband
parentRDMA/rtrs: Require holding rcu_read_lock explicitly (diff)
downloadlinux-c5930a1aa08aafe6ffe15b5d28fe875f88f6ac86.tar.xz
linux-c5930a1aa08aafe6ffe15b5d28fe875f88f6ac86.zip
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: Zhu Yanjun <yanjun.zhu@linux.dev> Link: https://lore.kernel.org/r/20230919020806.534183-1-yanjun.zhu@intel.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/ulp/rtrs/rtrs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/ulp/rtrs/rtrs.c b/drivers/infiniband/ulp/rtrs/rtrs.c
index 3696f367ff51..d80edfffd2e4 100644
--- a/drivers/infiniband/ulp/rtrs/rtrs.c
+++ b/drivers/infiniband/ulp/rtrs/rtrs.c
@@ -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;