drm/i915: Fix some NULL vs IS_ERR() conditions
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 7 Aug 2019 12:28:32 +0000 (15:28 +0300)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 7 Aug 2019 13:30:59 +0000 (14:30 +0100)
commited29da7123a6275f0b2b1ee05f761b25ab0f20d4
tree93c93af6fb3c304c24d4abd52cfbc5210e228820
parent9ae06cad821bbeaca9b34dbb9bdb8591a1d9762a
drm/i915: Fix some NULL vs IS_ERR() conditions

There were several places which check for NULL when they should have
been checking for IS_ERR().

Fixes: d8af05ff38ae ("drm/i915: Allow sharing the idle-barrier from other kernel requests")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20190807122832.GA10517@mwanda
drivers/gpu/drm/i915/gt/selftest_context.c