From 5967b546dd7142e7747993bb4c79422cd7b6f34f Mon Sep 17 00:00:00 2001 From: Chao Xie Date: Tue, 31 Jul 2012 14:13:10 +0800 Subject: [PATCH] ARM: cache: fix uninitialized ptr in tauros2_init init the variable "mode" to NULL to ensure the later NULL checking is taking effect. Signed-off-by: Chao Xie Signed-off-by: Haojian Zhuang --- arch/arm/mm/cache-tauros2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mm/cache-tauros2.c b/arch/arm/mm/cache-tauros2.c index 23a7643e9a87..97e2ac81399f 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(); -- 2.20.1