]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: fix a couple IS_ERR() vs NULL tests
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 8 Jul 2022 09:41:04 +0000 (12:41 +0300)
committerMatthew Auld <matthew.auld@intel.com>
Mon, 11 Jul 2022 09:14:51 +0000 (10:14 +0100)
commit03109387b45ef7a76bb4f904d7ff4ee35172bf27
tree8db44dd75c70ed8880f49409cbb1e1abc3a69df0
parent854b8eeb48d403ece8c1763bd5906d1239d048cc
drm/i915/selftests: fix a couple IS_ERR() vs NULL tests

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

Fixes: f94aa9517137 ("drm/i915/gt: Keep a no-frills swappable copy of the default context state")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220708094104.GL2316@kadam
drivers/gpu/drm/i915/gt/selftest_lrc.c