forked from Minki/linux
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:
|
||
---|---|---|
.. | ||
exynos5422-dmc.c | ||
exynos-srom.c | ||
exynos-srom.h | ||
Kconfig | ||
Makefile |