Commit 81a04d2e authored by Dan Carpenter's avatar Dan Carpenter Committed by Chris Wilson

drm/i915: selftest_lrc: Check the correct variable

We should check "request[n]" instead of just "request".

Fixes: 78e41ddd ("drm/i915: Apply an execution_mask to the virtual_engine")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20190529110355.GA19119@mwanda
parent 2e2f08d0
...@@ -1531,8 +1531,8 @@ static int mask_virtual_engine(struct drm_i915_private *i915, ...@@ -1531,8 +1531,8 @@ static int mask_virtual_engine(struct drm_i915_private *i915,
for (n = 0; n < nsibling; n++) { for (n = 0; n < nsibling; n++) {
request[n] = i915_request_create(ve); request[n] = i915_request_create(ve);
if (IS_ERR(request)) { if (IS_ERR(request[n])) {
err = PTR_ERR(request); err = PTR_ERR(request[n]);
nsibling = n; nsibling = n;
goto out; goto out;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment