commit | 9e31c2a590f27309fb8a419ba2943879af26a8cd | [log] [tgz] |
---|---|---|
author | Imre Deak <imre.deak@intel.com> | Fri Jun 06 14:04:37 2014 +0300 |
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | Fri Jun 13 15:17:39 2014 +0200 |
tree | 144fa00e8bca147daf4209b1bda8fa5b53897ada | |
parent | fdaf66de9e4e242bb1ce8b41db49551830336b44 [diff] |
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 <imre.deak@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>