diff options
author | Viresh Kumar | 2015-07-08 11:42:16 +0200 |
---|---|---|
committer | Rafael J. Wysocki | 2015-07-16 23:51:26 +0200 |
commit | 7f0fa40f5a587c2a026de776cc6a26373ac0f244 (patch) | |
tree | 57046717975bec510427c18c3dfb587f49984a16 /.gitignore | |
parent | cpufreq: cpufreq_add_dev: name goto labels based on what they do (diff) | |
download | kernel-qcow2-linux-7f0fa40f5a587c2a026de776cc6a26373ac0f244.tar.gz kernel-qcow2-linux-7f0fa40f5a587c2a026de776cc6a26373ac0f244.tar.xz kernel-qcow2-linux-7f0fa40f5a587c2a026de776cc6a26373ac0f244.zip |
cpufreq: Properly handle errors from cpufreq_init_policy()
cpufreq_init_policy() can fail, and we don't do anything except a call
to ->exit() on that. The policy should be freed if this happens.
Do it properly.
Reported-and-tested-by: "Jon Medhurst (Tixy)" <tixy@linaro.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions