]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cpufreq: sparc: change kzalloc to kcalloc
authorEthan Carter Edwards <ethan@ethancedwards.com>
Mon, 23 Dec 2024 14:41:24 +0000 (14:41 +0000)
committerViresh Kumar <viresh.kumar@linaro.org>
Tue, 24 Dec 2024 04:18:58 +0000 (09:48 +0530)
commitaf6cc45af3db12f452bfdc9a515da54b56412756
treec8786f2717310ababdd08330caad704c7b39f1f6
parenta9ba290d0b829012574b6821ba08815046e60c94
cpufreq: sparc: change kzalloc to kcalloc

Refactor to use kcalloc instead of kzalloc when multiplying
allocation size by count. This refactor prevents unintentional
memory overflows. Discovered by checkpatch.pl.

Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/sparc-us2e-cpufreq.c
drivers/cpufreq/sparc-us3-cpufreq.c