diff options
author | Viresh Kumar <[email protected]> | 2015-07-08 15:12:16 +0530 |
---|---|---|
committer | Rafael J. Wysocki <[email protected]> | 2015-07-16 23:51:26 +0200 |
commit | 7f0fa40f5a587c2a026de776cc6a26373ac0f244 (patch) | |
tree | 57046717975bec510427c18c3dfb587f49984a16 /lib/memory-notifier-error-inject.c | |
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)" <[email protected]>
Signed-off-by: Viresh Kumar <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions