Commit 8b2abf77 authored by Dan Carpenter's avatar Dan Carpenter Committed by Rodrigo Vivi

drm/i915/guc: fix NULL vs IS_ERR() checking

The intel_engine_create_virtual() function does not return NULL.  It
returns error pointers.

Fixes: e5e32171 ("drm/i915/guc: Connect UAPI to GuC multi-lrc interface")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: default avatarJohn Harrison <John.C.Harrison@Intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211116114916.GB11936@kili
(cherry picked from commit fc12b70d)
Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
parent d33233d8
...@@ -3080,8 +3080,8 @@ guc_create_parallel(struct intel_engine_cs **engines, ...@@ -3080,8 +3080,8 @@ guc_create_parallel(struct intel_engine_cs **engines,
ce = intel_engine_create_virtual(siblings, num_siblings, ce = intel_engine_create_virtual(siblings, num_siblings,
FORCE_VIRTUAL); FORCE_VIRTUAL);
if (!ce) { if (IS_ERR(ce)) {
err = ERR_PTR(-ENOMEM); err = ERR_CAST(ce);
goto unwind; goto unwind;
} }
......
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