drm/i915: Drop rpm wakeref on error in debugfs/i915_drop_caches_set
authorJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Thu, 18 Oct 2018 09:20:25 +0000 (12:20 +0300)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Thu, 18 Oct 2018 15:19:33 +0000 (18:19 +0300)
commit198a2a2f1aea3eb6ea033cfec26da9a637405289
tree8a8c8348666e6dee112c9ee2209690ff0c3ab6dd
parente346a991f42ca2a397166ac73445832966aa8968
drm/i915: Drop rpm wakeref on error in debugfs/i915_drop_caches_set

Use single exit point to drop rpm wakeref in case of an error.

Fixes: 9d3eb2c33f03 ("drm/i915: Hold rpm wakeref for debugfs/i915_drop_caches_set")
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20181018092025.24076-1-joonas.lahtinen@linux.intel.com
drivers/gpu/drm/i915/i915_debugfs.c