]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/guc: fix NULL vs IS_ERR() checking
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 16 Nov 2021 11:49:16 +0000 (14:49 +0300)
committerJohn Harrison <John.C.Harrison@Intel.com>
Tue, 16 Nov 2021 20:07:48 +0000 (12:07 -0800)
commitfc12b70d12d07598cde27cc17dbfafc2a2a33ff8
tree1e5ac4f0ef3d0ee18f216d1f521672a5acff82f7
parent9a7fc952717ea63d13eb9d42581af52ba34c3914
drm/i915/guc: fix NULL vs IS_ERR() checking

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

Fixes: e5e32171a2cf ("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
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c