]> 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)
commitee932477dc0ebcbfba1c0d34b44e0f461874cb5d
tree8db44dd75c70ed8880f49409cbb1e1abc3a69df0
parent78fde5681880b7bf3d73d3b09013c82aaac7e7fa
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: f1cdfce7ec5a ("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