Skip to content

Commit

Permalink
RDMA/cxgb3: Fix uninitialized variable
Browse files Browse the repository at this point in the history
The variable npages might be used uninitialized.

Signed-off-by: Cong Ding <dinggnu@gmail.com>
Acked-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
  • Loading branch information
Cong Ding authored and Roland Dreier committed Apr 17, 2013
1 parent 41ef2d5 commit bc4ba94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/infiniband/hw/cxgb3/iwch_provider.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bc4ba94

Please sign in to comment.