]> git.baikalelectronics.ru Git - kernel.git/commit
PM / devfreq: devm_kzalloc to have dev pointer more precisely
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Fri, 2 Oct 2015 03:39:23 +0000 (12:39 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 22 Jun 2016 04:51:08 +0000 (13:51 +0900)
commitb658a80bc681d771bf924832750123723331e47e
tree52c99f6ff840b7cd78a744e183cd2991f7add3b8
parentfef9870bc2480dcb6423cd64866278a1a0a14a43
PM / devfreq: devm_kzalloc to have dev pointer more precisely

devm_kzalloc of devfreq's statistics data structure has been
using its parent device as the dev allocated for.
If a device's devfreq is disabled in run-time,
such allocated memory won't be freed.

Desginating more precisely with the devfreq device
pointer fixes the issue.

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
drivers/devfreq/devfreq.c