Browse Source

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 <xiechao.mail@gmail.com>
Signed-off-by: Haojian Zhuang <haojian.zhuang@gmail.com>
Chao Xie 13 years ago
parent
commit
5967b546dd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      arch/arm/mm/cache-tauros2.c

+ 1 - 1
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();