]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: fix NULL vs IS_ERR() check in mock_context_barrier()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 21 Mar 2019 09:24:51 +0000 (12:24 +0300)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 21 Mar 2019 13:30:16 +0000 (13:30 +0000)
commit93c6c453091fa68b03243c7e39bf5811d2ebc216
treebc4bd03dfc2d729fa6835d1206d72eb875cf0166
parenta02b07e7f0b6f641c4295aae7f126080179c0f2e
drm/i915/selftests: fix NULL vs IS_ERR() check in mock_context_barrier()

The mock_context() function returns NULL on error, it doesn't return
error pointers.

Fixes: 9eec8e7bca2d ("drm/i915: Introduce a context barrier callback")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20190321092451.GK2202@kadam
drivers/gpu/drm/i915/selftests/i915_gem_context.c