summaryrefslogtreecommitdiffstats
path: root/arch/arm/mm/cache-tauros2.c
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 /arch/arm/mm/cache-tauros2.c
parent0d2ee5d773c209504db643ec4d4b9f3624a6663f (diff)
downloadop-kernel-dev-5967b546dd7142e7747993bb4c79422cd7b6f34f.zip
op-kernel-dev-5967b546dd7142e7747993bb4c79422cd7b6f34f.tar.gz
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.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 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();
OpenPOWER on IntegriCloud