提交 5967b546 编写于 作者: C Chao Xie 提交者: 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: NChao Xie <xiechao.mail@gmail.com>
Signed-off-by: NHaojian Zhuang <haojian.zhuang@gmail.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册