Commit 23ec9f42 authored by Dan Carpenter's avatar Dan Carpenter Committed by Chris Wilson

drm/i915/selftest: Fix an error code in live_noa_gpr()

The error code needs to be set on this path.  It currently returns
success.

Fixes: ed2690a9 ("drm/i915/selftest: Check that GPR are restored across noa_wait")
Reported-by: default avatarLionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarLionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20200714143652.GA337376@mwanda
parent 0428ab01
...@@ -357,6 +357,7 @@ static int live_noa_gpr(void *arg) ...@@ -357,6 +357,7 @@ static int live_noa_gpr(void *arg)
cs = intel_ring_begin(rq, 4); cs = intel_ring_begin(rq, 4);
if (IS_ERR(cs)) { if (IS_ERR(cs)) {
err = PTR_ERR(cs);
i915_request_add(rq); i915_request_add(rq);
goto out_rq; goto out_rq;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment