The error code needs to be set on this path. It currently returns
success.
Fixes:
ed2690a9ca89 ("drm/i915/selftest: Check that GPR are restored across noa_wait")
Reported-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20200714143652.GA337376@mwanda
cs = intel_ring_begin(rq, 4);
if (IS_ERR(cs)) {
+ err = PTR_ERR(cs);
i915_request_add(rq);
goto out_rq;
}