mirror of
https://github.com/torvalds/linux.git
synced 2024-11-14 16:12:02 +00:00
drm/i915/guc: fix NULL vs IS_ERR() checking
The intel_engine_create_virtual() function does not return NULL. It returns error pointers. Fixes:e5e32171a2
("drm/i915/guc: Connect UAPI to GuC multi-lrc interface") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by: John Harrison <John.C.Harrison@Intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20211116114916.GB11936@kili (cherry picked from commitfc12b70d12
) Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
This commit is contained in:
parent
d33233d878
commit
8b2abf777d
@ -3080,8 +3080,8 @@ guc_create_parallel(struct intel_engine_cs **engines,
|
||||
|
||||
ce = intel_engine_create_virtual(siblings, num_siblings,
|
||||
FORCE_VIRTUAL);
|
||||
if (!ce) {
|
||||
err = ERR_PTR(-ENOMEM);
|
||||
if (IS_ERR(ce)) {
|
||||
err = ERR_CAST(ce);
|
||||
goto unwind;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user