From: Chao Xie Date: Tue, 31 Jul 2012 06:13:10 +0000 (+0800) Subject: ARM: cache: fix uninitialized ptr in tauros2_init X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5967b546dd7142e7747993bb4c79422cd7b6f34f;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Haojian Zhuang --- diff --git a/arch/arm/mm/cache-tauros2.c b/arch/arm/mm/cache-tauros2.c index 23a7643e9a87..97e2ac81399f 100644 --- a/arch/arm/mm/cache-tauros2.c +++ b/arch/arm/mm/cache-tauros2.c @@ -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();