Skip to content

Commit

Permalink
ARM: cache: fix uninitialized ptr in tauros2_init
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Chao Xie authored and Haojian Zhuang committed Aug 16, 2012
1 parent 0d2ee5d commit 5967b54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mm/cache-tauros2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 5967b54

Please sign in to comment.