infiniband: hw/cxgb3/iwch_provider.c: fix uninitialized variable issue
PATCH 1/1 infiniband: hw/cxgb3/iwch_provider.c: fix uninitialized variable issue
The variable npages might be used uninitialized in line 594.
Signed-off-by Cong Ding <[email protected]>
--- drivers/infiniband/hw/cxgb3/iwch_provider.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/hw/cxgb3/iwch_provider.c +1 -1
@@ -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);
Signature · 6 lines
1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Acked-by Steve Wise <[email protected]>