summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorminskey guo <chaohong.guo@linux.intel.com>2010-09-17 08:03:15 +0200
committerMatthew Garrett <mjg@redhat.com>2010-10-05 20:59:01 +0200
commitfed522f7ea780d195d5d3e55df95fee520136e17 (patch)
treea694e5894fdf552dd9850067ddcba9bfa3838592
parentold_cpu_power is wrongly divided by 65535 in ips_monitor() (diff)
downloadlinux-fed522f7ea780d195d5d3e55df95fee520136e17.tar.xz
linux-fed522f7ea780d195d5d3e55df95fee520136e17.zip
Release symbol on error-handling path of ips_get_i915_syms()
In ips_get_i915_syms(), the symbol i915_gpu_busy() is not released when error occurs. Signed-off-by: minskey guo <chaohong.guo@intel.com> Acked-by: Jesse Barnes <jbarnes@virtuousgeek.org> Signed-off-by: Matthew Garrett <mjg@redhat.com>
-rw-r--r--drivers/platform/x86/intel_ips.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/intel_ips.c b/drivers/platform/x86/intel_ips.c
index 3c7b25c3cb80..71dcc410f9d0 100644
--- a/drivers/platform/x86/intel_ips.c
+++ b/drivers/platform/x86/intel_ips.c
@@ -1390,7 +1390,7 @@ static bool ips_get_i915_syms(struct ips_driver *ips)
return true;
out_put_busy:
- symbol_put(i915_gpu_turbo_disable);
+ symbol_put(i915_gpu_busy);
out_put_lower:
symbol_put(i915_gpu_lower);
out_put_raise: