]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Release symbol on error-handling path of ips_get_i915_syms()
authorminskey guo <chaohong.guo@linux.intel.com>
Fri, 17 Sep 2010 06:03:15 +0000 (14:03 +0800)
committerMatthew Garrett <mjg@redhat.com>
Tue, 5 Oct 2010 18:59:01 +0000 (14:59 -0400)
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>
drivers/platform/x86/intel_ips.c

index 3c7b25c3cb80101f29fea43c57f780858088b972..71dcc410f9d02443bde44b12b9ca41384adc166c 100644 (file)
@@ -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: