Skip to contentSkip to conversation

infiniband: hw/cxgb3/iwch_provider.c: fix uninitialized variable issue

PATCH In review Cong Ding 2 participants 2 messages Feb 4, 2013 InfiniBand

lore
Share & tools
lore

Cong Ding

author
#0 lore raw

PATCH 1/1 infiniband: hw/cxgb3/iwch_provider.c: fix uninitialized variable issue

The variable npages might be used uninitialized in line 594.

---
 drivers/infiniband/hw/cxgb3/iwch_provider.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/infiniband/hw/cxgb3/iwch_provider.c +1 -1
index 145d82a..90ce483 100644
@@ -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