diff options
-rw-r--r-- | sys/dev/pci/drm/i915/gt/selftest_lrc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/drm/i915/gt/selftest_lrc.c b/sys/dev/pci/drm/i915/gt/selftest_lrc.c index b0977a3b699..bc2950fbbaf 100644 --- a/sys/dev/pci/drm/i915/gt/selftest_lrc.c +++ b/sys/dev/pci/drm/i915/gt/selftest_lrc.c @@ -153,8 +153,8 @@ static int live_lrc_layout(void *arg) continue; hw = shmem_pin_map(engine->default_state); - if (IS_ERR(hw)) { - err = PTR_ERR(hw); + if (!hw) { + err = -ENOMEM; break; } hw += LRC_STATE_OFFSET / sizeof(*hw); @@ -329,8 +329,8 @@ static int live_lrc_fixed(void *arg) continue; hw = shmem_pin_map(engine->default_state); - if (IS_ERR(hw)) { - err = PTR_ERR(hw); + if (!hw) { + err = -ENOMEM; break; } hw += LRC_STATE_OFFSET / sizeof(*hw); |