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>
This commit is contained in:
parent
0d2ee5d773
commit
5967b546dd
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue