Re: [PATCH] cpufreq: ap806: Add NULL check after kcalloc

2019-07-21 Thread Viresh Kumar
On 21-07-19, 23:38, Hariprasad Kelam wrote: > Add NULL check after kcalloc. > > Fix below issue reported by coccicheck > ./drivers/cpufreq/armada-8k-cpufreq.c:138:1-12: alloc with no test, > possible model on line 151 > > Signed-off-by: Hariprasad Kelam > --- >

[PATCH] cpufreq: ap806: Add NULL check after kcalloc

2019-07-21 Thread Hariprasad Kelam
Add NULL check after kcalloc. Fix below issue reported by coccicheck ./drivers/cpufreq/armada-8k-cpufreq.c:138:1-12: alloc with no test, possible model on line 151 Signed-off-by: Hariprasad Kelam --- drivers/cpufreq/armada-8k-cpufreq.c | 2 ++ 1 file changed, 2 insertions(+) diff --git