From: Shuicheng Lin Date: Thu, 13 Feb 2025 23:03:22 +0000 (+0000) Subject: drm/xe/debugfs: Add missing xe_pm_runtime_put in wedge_mode_set X-Git-Tag: v6.15-rc1~120^2~15^2~27 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b31e668d3111b100d16fd7db8db335328ce8c6d5;p=thirdparty%2Fkernel%2Flinux.git drm/xe/debugfs: Add missing xe_pm_runtime_put in wedge_mode_set xe_pm_runtime_put is missed in the failure path. Cc: Rodrigo Vivi Signed-off-by: Shuicheng Lin Reviewed-by: Rodrigo Vivi Link: https://patchwork.freedesktop.org/patch/msgid/20250213230322.1180621-1-shuicheng.lin@intel.com Signed-off-by: Rodrigo Vivi --- diff --git a/drivers/gpu/drm/xe/xe_debugfs.c b/drivers/gpu/drm/xe/xe_debugfs.c index 56cb3788e7523..761e00cb64371 100644 --- a/drivers/gpu/drm/xe/xe_debugfs.c +++ b/drivers/gpu/drm/xe/xe_debugfs.c @@ -176,6 +176,7 @@ static ssize_t wedged_mode_set(struct file *f, const char __user *ubuf, ret = xe_guc_ads_scheduler_policy_toggle_reset(>->uc.guc.ads); if (ret) { xe_gt_err(gt, "Failed to update GuC ADS scheduler policy. GuC may still cause engine reset even with wedged_mode=2\n"); + xe_pm_runtime_put(xe); return -EIO; } }