drm/i915/selftests: Fix inconsistent IS_ERR and PTR_ERR

Fix inconsistent IS_ERR and PTR_ERR in live_timeslice_nopreempt().

The proper pointer to be passed as argument to PTR_ERR() is ce.

This bug was detected with the help of Coccinelle.

Fixes: b72f02d78e ("drm/i915/gt: Prevent timeslicing into unpreemptable requests")
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
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/20200616145452.GA25291@embeddedor
This commit is contained in:
Gustavo A. R. Silva 2020-06-16 09:54:52 -05:00 committed by Chris Wilson
parent 570af07d79
commit f29e08800b
1 changed files with 1 additions and 1 deletions

View File

@ -1337,7 +1337,7 @@ static int live_timeslice_nopreempt(void *arg)
ce = intel_context_create(engine); ce = intel_context_create(engine);
if (IS_ERR(ce)) { if (IS_ERR(ce)) {
err = PTR_ERR(rq); err = PTR_ERR(ce);
goto out_spin; goto out_spin;
} }