Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bc4ba94c authored by Cong Ding's avatar Cong Ding Committed by Roland Dreier
Browse files

RDMA/cxgb3: Fix uninitialized variable



The variable npages might be used uninitialized.

Signed-off-by: default avatarCong Ding <dinggnu@gmail.com>
Acked-by: default avatarSteve Wise <swise@opengridcomputing.com>
Signed-off-by: default avatarRoland Dreier <roland@purestorage.com>
parent 41ef2d56
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -559,7 +559,7 @@ static int iwch_reregister_phys_mem(struct ib_mr *mr,
	__be64 *page_list = NULL;
	int shift = 0;
	u64 total_size;
	int npages;
	int npages = 0;
	int ret;

	PDBG("%s ib_mr %p ib_pd %p\n", __func__, mr, pd);