Skip to content

Commit 23ec9f4

Browse files
Dan Carpenterickle
authored andcommitted
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: ed2690a ("drm/i915/selftest: Check that GPR are restored across noa_wait") Reported-by: Lionel Landwerlin <[email protected]> Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]> Signed-off-by: Chris Wilson <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/20200714143652.GA337376@mwanda
1 parent 0428ab0 commit 23ec9f4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpu/drm/i915/selftests/i915_perf.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,7 @@ static int live_noa_gpr(void *arg)
357357

358358
cs = intel_ring_begin(rq, 4);
359359
if (IS_ERR(cs)) {
360+
err = PTR_ERR(cs);
360361
i915_request_add(rq);
361362
goto out_rq;
362363
}

0 commit comments

Comments
 (0)