summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorSagar Arun Kamble <sagar.a.kamble@intel.com>2018-01-31 11:44:37 +0530
committerChris Wilson <chris@chris-wilson.co.uk>2018-01-31 10:46:02 +0000
commitb1852d362f31ac0c233e7c7b040f7c58bd381267 (patch)
treea7e6621186f1cd148174f610905c3b88bece3fd3 /drivers/gpu/drm
parent889230489b6b138ba97ba2f13fc9644a3d16d0d2 (diff)
downloadtalos-op-linux-b1852d362f31ac0c233e7c7b040f7c58bd381267.tar.gz
talos-op-linux-b1852d362f31ac0c233e7c7b040f7c58bd381267.zip
drm/i915/guc: Fix return from guc_log_relay_file_create
guc_log_relay_file_create will return -EEXIST if we invoke relay_late_setup_files multiple times as part of i915_guc_log_control. However this is to be not cosidered as fail and need to return 0. This was mistakenly introduced in the below commit. Fix it. Fixes: 70deeaddc6e6 "drm/i915/guc: Fix lockdep due to log relay channel handling under struct_mutex" Signed-off-by: Sagar Arun Kamble <sagar.a.kamble@intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Cc: Michal Wajdeczko <michal.wajdeczko@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/1517379279-12967-1-git-send-email-sagar.a.kamble@intel.com Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/i915/intel_guc_log.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_guc_log.c b/drivers/gpu/drm/i915/intel_guc_log.c
index 86a33214cbfc..3fbe93ac81dc 100644
--- a/drivers/gpu/drm/i915/intel_guc_log.c
+++ b/drivers/gpu/drm/i915/intel_guc_log.c
@@ -185,6 +185,8 @@ static int guc_log_relay_file_create(struct intel_guc *guc)
goto out_unlock;
}
+ ret = 0;
+
out_unlock:
mutex_unlock(&guc->log.runtime.relay_lock);
return ret;
OpenPOWER on IntegriCloud