]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
drm/i915: selftest_lrc: Check the correct variable
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 29 May 2019 11:03:55 +0000 (14:03 +0300)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 29 May 2019 11:07:59 +0000 (12:07 +0100)
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
drivers/gpu/drm/i915/gt/selftest_lrc.c

index d162b0d3ec8e0cf3f6596954a12c9b19c5d5b6fd..06593254b7d6d364bd1b7508f2e811e6da1f6575 100644 (file)
@@ -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;
                }