mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-21 03:35:50 -04:00
drm/i915/selftests: Fix some error codes
These error paths return success instead of negative error codes as
intended.
Fixes: c92724de6d ("drm/i915/selftests: Try to detect rollback during batchbuffer preemption")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/X/xMdcewtft7+QFM@mwanda
This commit is contained in:
committed by
Chris Wilson
parent
baa7c2cd99
commit
6a3daee1b3
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user