[PATCH] Fix uninitalised values in efi_memmap_walk

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

arch/ia64/kernel/efi.c: In function 'efi_memmap_walk':
arch/ia64/kernel/efi.c:306: warning: 'prev.start' may be used uninitialized in this function
arch/ia64/kernel/efi.c:306: warning: 'prev.end' may be used uninitialized in this function

--

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

diff --git a/arch/ia64/kernel/efi.c b/arch/ia64/kernel/efi.c
--- a/arch/ia64/kernel/efi.c
+++ b/arch/ia64/kernel/efi.c
@@ -303,7 +303,7 @@ efi_memmap_walk (efi_freemem_callback_t 
 	struct range {
 		u64 start;
 		u64 end;
-	} prev, curr;
+	} prev = {0}, curr = {0};
 	void *efi_map_start, *efi_map_end, *p, *q;
 	efi_memory_desc_t *md, *check_md;
 	u64 efi_desc_size, start, end, granule_addr, last_granule_addr, first_non_wb_addr = 0;
-
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:27:52 2005

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