[PATCH 8/8] some fixes

Andi Shyti andi.shyti at linux.intel.com
Tue Mar 14 15:20:43 UTC 2023


---
 drivers/gpu/drm/i915/i915_request.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/i915/i915_request.c b/drivers/gpu/drm/i915/i915_request.c
index a4af16e25d966..08c158b5724e2 100644
--- a/drivers/gpu/drm/i915/i915_request.c
+++ b/drivers/gpu/drm/i915/i915_request.c
@@ -1043,6 +1043,9 @@ __i915_request_create_locked(struct intel_context *ce)
 	rq = __i915_request_create(ce, GFP_KERNEL);
 	intel_context_exit(ce); /* active reference transferred to request */
 
+	if (IS_ERR(rq))
+		return rq;
+
 	/* Check that we do not interrupt ourselves with a new request */
 	rq->cookie = lockdep_pin_lock(&tl->mutex);
 
-- 
2.39.2



More information about the Intel-gfx-trybot mailing list