drm/xe/mmio: fix forcewake ref leak in xe_mmio_ioctl
authorMatthew Auld <matthew.auld@intel.com>
Wed, 15 Feb 2023 10:28:43 +0000 (10:28 +0000)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 19 Dec 2023 23:28:53 +0000 (18:28 -0500)
commit0d83be772c1f8e0d3db4a26a5f1308e058a98354
tree2ecdd5c0f8a7de63fb32e9f03f7c33b2862f3247
parentba00da78ce4d2a7fe7ef245e1168b7946827995d
drm/xe/mmio: fix forcewake ref leak in xe_mmio_ioctl

Make sure we properly release the forcewake ref on all error paths.

v2(Lucas):
  - Make it less verbose and just fold the unimplemented options into
    the default. The exact return value doesn't seem to matter for the
    corresponding IGT.
  - Replace the user triggerable WARN() with drm_dbg().

Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_mmio.c