Skip to content

Commit

Permalink
Release symbol on error-handling path of ips_get_i915_syms()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
minskey guo authored and Matthew Garrett committed Oct 5, 2010
1 parent c21eae4 commit fed522f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/platform/x86/intel_ips.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit fed522f

Please sign in to comment.