diff options
author | Chao Xie <xiechao.mail@gmail.com> | 2012-07-31 10:13:10 +0400 |
---|---|---|
committer | Haojian Zhuang <haojian.zhuang@gmail.com> | 2012-08-16 12:16:06 +0400 |
commit | 5967b546dd7142e7747993bb4c79422cd7b6f34f (patch) | |
tree | 5d8a9d5e5818b7aed29bba94a1411aff3c03c4be /arch/arm/mm/cache-tauros2.c | |
parent | 0d2ee5d773c209504db643ec4d4b9f3624a6663f (diff) | |
download | linux-5967b546dd7142e7747993bb4c79422cd7b6f34f.tar.xz |
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>
Diffstat (limited to 'arch/arm/mm/cache-tauros2.c')
-rw-r--r-- | 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 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(); |