Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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();