]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb372fc227a368de6cee6eae62b1aa6e212e1e37e
tree93c93af6fb3c304c24d4abd52cfbc5210e228820
parent4459d5f00edb6708cded2e1068e02df0acf777cf
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: fad6ec991f93 ("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