Skip to content
Commit 3e1d7fb0 authored by MyungJoo Ham's avatar MyungJoo Ham
Browse files

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: default avatarMyungJoo Ham <myungjoo.ham@samsung.com>
parent 33688abb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment