commit | 7f0fa40f5a587c2a026de776cc6a26373ac0f244 | [log] [tgz] |
---|---|---|
author | Viresh Kumar <viresh.kumar@linaro.org> | Wed Jul 08 15:12:16 2015 +0530 |
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | Thu Jul 16 23:51:26 2015 +0200 |
tree | 57046717975bec510427c18c3dfb587f49984a16 | |
parent | 8101f99703048ceaa31c756abe1098d099249ad9 [diff] |
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>