From: Dan Carpenter Date: Mon, 11 Jan 2021 13:13:20 +0000 (+0000) Subject: drm/i915/selftests: Fix some error codes X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=6a3daee1b38e239fb7c93e03ce77eb722d30db38;p=linux.git drm/i915/selftests: Fix some error codes These error paths return success instead of negative error codes as intended. Fixes: c92724de6db1 ("drm/i915/selftests: Try to detect rollback during batchbuffer preemption") Signed-off-by: Dan Carpenter Reviewed-by: Chris Wilson Signed-off-by: Chris Wilson Link: https://patchwork.freedesktop.org/patch/msgid/X/xMdcewtft7+QFM@mwanda --- diff --git a/drivers/gpu/drm/i915/gt/selftest_execlists.c b/drivers/gpu/drm/i915/gt/selftest_execlists.c index e9070f51ff151..264b5ebdb021f 100644 --- a/drivers/gpu/drm/i915/gt/selftest_execlists.c +++ b/drivers/gpu/drm/i915/gt/selftest_execlists.c @@ -3298,8 +3298,10 @@ static int live_preempt_user(void *arg) rq = create_gpr_client(engine, global, NUM_GPR * i * sizeof(u32)); - if (IS_ERR(rq)) + if (IS_ERR(rq)) { + err = PTR_ERR(rq); goto end_test; + } client[i] = rq; }