projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41ef2d5
)
RDMA/cxgb3: Fix uninitialized variable
author
Cong Ding
<dinggnu@gmail.com>
Mon, 4 Feb 2013 22:18:06 +0000
(22:18 +0000)
committer
Roland Dreier
<roland@purestorage.com>
Wed, 17 Apr 2013 05:45:33 +0000
(22:45 -0700)
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>
drivers/infiniband/hw/cxgb3/iwch_provider.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/cxgb3/iwch_provider.c
b/drivers/infiniband/hw/cxgb3/iwch_provider.c
index 9c12da0cbd32539b5a8060a7a6deed8101cdd25d..e87f2201b220673030ca18a3957642b623d065a7 100644
(file)
--- a/
drivers/infiniband/hw/cxgb3/iwch_provider.c
+++ b/
drivers/infiniband/hw/cxgb3/iwch_provider.c
@@
-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);