]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq / intel_pstate: Fix intel_pstate_init() error path
authorDirk Brandewie <dirk.brandewie@gmail.com>
Tue, 5 Mar 2013 22:15:27 +0000 (14:15 -0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 6 Mar 2013 22:34:58 +0000 (23:34 +0100)
commit117cf500e3da567fcb38e21587262da299157826
treedb9bf7f809c64ccb6678878ad6b828fef2d81395
parent0d303db150837d3a867d300083758005bb93f253
cpufreq / intel_pstate: Fix intel_pstate_init() error path

If cpufreq_register_driver() fails just free memory that has been
allocated and return. intel_pstate_exit() function is removed since we
are built-in only now there is no reason for a module exit procedure.

Reported-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Dirk Brandewie <dirk.j.brandewie@intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/intel_pstate.c