cpufreq: ap806: Add NULL check after kcalloc
authorHariprasad Kelam <hariprasad.kelam@gmail.com>
Sun, 21 Jul 2019 18:08:15 +0000 (23:38 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Mon, 22 Jul 2019 05:42:15 +0000 (11:12 +0530)
commit3355c91b79394593ebbb197c8e930a91826f4ff3
tree372bd67f97485fd432b6d9d5912d96cd1cea1cf6
parentb880c18336252df4866d07f850ea7872b6e83f0a
cpufreq: ap806: Add NULL check after kcalloc

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 <hariprasad.kelam@gmail.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/armada-8k-cpufreq.c