summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChao Xie <xiechao.mail@gmail.com>2012-07-31 14:13:10 +0800
committerHaojian Zhuang <haojian.zhuang@gmail.com>2012-08-16 16:16:06 +0800
commit5967b546dd7142e7747993bb4c79422cd7b6f34f (patch)
tree5d8a9d5e5818b7aed29bba94a1411aff3c03c4be
parent0d2ee5d773c209504db643ec4d4b9f3624a6663f (diff)
downloadtalos-obmc-linux-5967b546dd7142e7747993bb4c79422cd7b6f34f.tar.gz
talos-obmc-linux-5967b546dd7142e7747993bb4c79422cd7b6f34f.zip
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>
-rw-r--r--arch/arm/mm/cache-tauros2.c2
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();
OpenPOWER on IntegriCloud