56653827f0
'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:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
exynos-srom.c | ||
exynos-srom.h | ||
exynos5422-dmc.c |