diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2019-05-29 13:03:55 +0200 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2019-05-29 13:07:59 +0200 |
commit | 81a04d2e9091832710549176db0e46d1a666f9ae (patch) | |
tree | 32669090ac1502e18b145ada99a1edbd57c6eb85 /drivers/gpu/drm/i915/gt | |
parent | drm/i915: Take a runtime pm wakeref for atomic commits (diff) | |
download | linux-81a04d2e9091832710549176db0e46d1a666f9ae.tar.xz linux-81a04d2e9091832710549176db0e46d1a666f9ae.zip |
drm/i915: selftest_lrc: Check the correct variable
We should check "request[n]" instead of just "request".
Fixes: 78e41ddd2198 ("drm/i915: Apply an execution_mask to the virtual_engine")
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/20190529110355.GA19119@mwanda
Diffstat (limited to 'drivers/gpu/drm/i915/gt')
-rw-r--r-- | drivers/gpu/drm/i915/gt/selftest_lrc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/gt/selftest_lrc.c b/drivers/gpu/drm/i915/gt/selftest_lrc.c index d162b0d3ec8e..06593254b7d6 100644 --- a/drivers/gpu/drm/i915/gt/selftest_lrc.c +++ b/drivers/gpu/drm/i915/gt/selftest_lrc.c @@ -1531,8 +1531,8 @@ static int mask_virtual_engine(struct drm_i915_private *i915, for (n = 0; n < nsibling; n++) { request[n] = i915_request_create(ve); - if (IS_ERR(request)) { - err = PTR_ERR(request); + if (IS_ERR(request[n])) { + err = PTR_ERR(request[n]); nsibling = n; goto out; } |