Commit 5967b546 authored by Chao Xie's avatar Chao Xie Committed by Haojian Zhuang

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: default avatarChao Xie <xiechao.mail@gmail.com>
Signed-off-by: default avatarHaojian Zhuang <haojian.zhuang@gmail.com>
parent 0d2ee5d7
......@@ -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();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment