Commit fc7bf4c0 authored by Kai Song's avatar Kai Song Committed by Matthew Auld

drm/i915/selftests: Fix inconsistent IS_ERR and PTR_ERR

Fix inconsistent IS_ERR and PTR_ERR in i915_gem_dmabuf.c
Signed-off-by: default avatarKai Song <songkai01@inspur.com>
Reviewed-by: default avatarMatthew Auld <matthew.auld@intel.com>
Signed-off-by: default avatarMatthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211022120655.22173-1-songkai01@inspur.com
parent 12a9917e
...@@ -102,7 +102,7 @@ static int igt_dmabuf_import_same_driver_lmem(void *arg) ...@@ -102,7 +102,7 @@ static int igt_dmabuf_import_same_driver_lmem(void *arg)
obj = __i915_gem_object_create_user(i915, PAGE_SIZE, &lmem, 1); obj = __i915_gem_object_create_user(i915, PAGE_SIZE, &lmem, 1);
if (IS_ERR(obj)) { if (IS_ERR(obj)) {
pr_err("__i915_gem_object_create_user failed with err=%ld\n", pr_err("__i915_gem_object_create_user failed with err=%ld\n",
PTR_ERR(dmabuf)); PTR_ERR(obj));
err = PTR_ERR(obj); err = PTR_ERR(obj);
goto out_ret; goto out_ret;
} }
...@@ -158,7 +158,7 @@ static int igt_dmabuf_import_same_driver(struct drm_i915_private *i915, ...@@ -158,7 +158,7 @@ static int igt_dmabuf_import_same_driver(struct drm_i915_private *i915,
regions, num_regions); regions, num_regions);
if (IS_ERR(obj)) { if (IS_ERR(obj)) {
pr_err("__i915_gem_object_create_user failed with err=%ld\n", pr_err("__i915_gem_object_create_user failed with err=%ld\n",
PTR_ERR(dmabuf)); PTR_ERR(obj));
err = PTR_ERR(obj); err = PTR_ERR(obj);
goto out_ret; goto out_ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment