[PATCH] Fix uninitalised values in ia64_tlb_init

From: Ian Wienand <ianw_at_gelato.unsw.edu.au>
Date: 2005-07-19 11:28:08
Fix 

arch/ia64/mm/tlb.c: In function 'ia64_tlb_init':
arch/ia64/mm/tlb.c:171: warning: 'ptce_info.base' may be used uninitialized in this function
arch/ia64/mm/tlb.c:171: warning: 'ptce_info.count[0]' may be used uninitialized in this function
arch/ia64/mm/tlb.c:171: warning: 'ptce_info.count[1]' may be used uninitialized in this function
arch/ia64/mm/tlb.c:171: warning: 'ptce_info.stride[0]' may be used uninitialized in this function
arch/ia64/mm/tlb.c:171: warning: 'ptce_info.stride[1]' may be used uninitialized in this function

--

Signed-Off-By: Ian Wienand <ianw@gelato.unsw.edu.au>

diff --git a/arch/ia64/mm/tlb.c b/arch/ia64/mm/tlb.c
--- a/arch/ia64/mm/tlb.c
+++ b/arch/ia64/mm/tlb.c
@@ -172,6 +172,8 @@ ia64_tlb_init (void)
 	unsigned long tr_pgbits;
 	long status;
 
+	memset(&ptce_info, 0, sizeof(ptce_info));
+
 	if ((status = ia64_pal_vm_page_size(&tr_pgbits, &purge.mask)) != 0) {
 		printk(KERN_ERR "PAL_VM_PAGE_SIZE failed with status=%ld;"
 		       "defaulting to architected purge page-sizes.\n", status);
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Mon Jul 18 21:28:35 2005

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:40 EST