Commit fc12b70d authored by Dan Carpenter's avatar Dan Carpenter Committed by John Harrison

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
parent 9a7fc952
...@@ -3354,8 +3354,8 @@ guc_create_parallel(struct intel_engine_cs **engines, ...@@ -3354,8 +3354,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