From: Imre Deak Date: Fri, 6 Jun 2014 11:04:37 +0000 (+0300) Subject: drm/i915: fix possible refcount leak when resetting forcewake X-Git-Tag: cleanup-for-v3.18~84^2~63^2~59 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e31c2a590f27309fb8a419ba2943879af26a8cd;p=pandora-kernel.git drm/i915: fix possible refcount leak when resetting forcewake If the timer putting the last forcewake refcount was pending and we canceled it, we'll leak the corresponding forcewake and RPM references. v2: - do the ptr casting at the caller instead of adding a separate helper for this (Chris) Signed-off-by: Imre Deak Reviewed-by: Chris Wilson Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed