mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-12-09 20:16:13 +00:00
'dmc->counter' is a 'struct devfreq_event_dev **', so there is some
over memory allocation. 'counters_size' should be computed with
'sizeof(struct devfreq_event_dev *)'.
Use 'sizeof(*dmc->counter)' instead to fix it.
While at it, use devm_kcalloc() instead of devm_kzalloc()+open coded
multiplication.
Fixes:
|
||
|---|---|---|
| .. | ||
| exynos5422-dmc.c | ||
| exynos-srom.c | ||
| exynos-srom.h | ||
| Kconfig | ||
| Makefile | ||