Thread (8 messages) 8 messages, 2 authors, 2012-08-04
STALE5045d

[PATCH 3/7] arm: cache: fix uninitialized ptr in tauros2_init

From: Chao Xie <hidden>
Date: 2012-07-31 06:13:10
Subsystem: arm port, the rest · Maintainers: Russell King, Linus Torvalds

From: Chao Xie <redacted>

init the variable "mode" to NULL to ensure the later NULL checking is
taking effect.

Signed-off-by: Chao Xie <redacted>
---
 arch/arm/mm/cache-tauros2.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/arm/mm/cache-tauros2.c b/arch/arm/mm/cache-tauros2.c
index 23a7643..97e2ac8 100644
--- a/arch/arm/mm/cache-tauros2.c
+++ b/arch/arm/mm/cache-tauros2.c
@@ -192,7 +192,7 @@ static inline void __init write_actlr(u32 actlr)
 void __init tauros2_init(void)
 {
 	extern int processor_id;
-	char *mode;
+	char *mode = NULL;
 
 	disable_l2_prefetch();
 
-- 
1.7.0.4
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help