* [Intel-gfx] [PATCH] drm/i915/selftests: Fix inconsistent object in IS_ERR and PTR_ERR
@ 2021-12-10 6:11 Miaoqian Lin
2021-12-10 16:40 ` [Intel-gfx] ✗ Fi.CI.BAT: failure for " Patchwork
0 siblings, 1 reply; 3+ messages in thread
From: Miaoqian Lin @ 2021-12-10 6:11 UTC (permalink / raw)
Cc: dri-devel, Thomas Hellström, linmq006, David Airlie,
intel-gfx, linux-kernel, Nathan Chancellor, Matthew Auld
Fix inconsistent object in IS_ERR and PTR_ERR in
igt_dmabuf_import_same_driver and igt_dmabuf_import_same_driver_lmem.
As obj is the return value of __i915_gem_object_create_user,
the proper object to be passed as argument to PTR_ERR is obj.
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
---
drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c b/drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c
index 4a6bb64c3a35..3cc74b0fed06 100644
--- a/drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c
+++ b/drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c
@@ -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);
if (IS_ERR(obj)) {
pr_err("__i915_gem_object_create_user failed with err=%ld\n",
- PTR_ERR(dmabuf));
+ PTR_ERR(obj));
err = PTR_ERR(obj);
goto out_ret;
}
@@ -158,7 +158,7 @@ static int igt_dmabuf_import_same_driver(struct drm_i915_private *i915,
regions, num_regions);
if (IS_ERR(obj)) {
pr_err("__i915_gem_object_create_user failed with err=%ld\n",
- PTR_ERR(dmabuf));
+ PTR_ERR(obj));
err = PTR_ERR(obj);
goto out_ret;
}
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915/selftests: Fix inconsistent object in IS_ERR and PTR_ERR
2021-12-10 6:11 [Intel-gfx] [PATCH] drm/i915/selftests: Fix inconsistent object in IS_ERR and PTR_ERR Miaoqian Lin
@ 2021-12-10 16:40 ` Patchwork
2021-12-11 3:15 ` 林妙倩
0 siblings, 1 reply; 3+ messages in thread
From: Patchwork @ 2021-12-10 16:40 UTC (permalink / raw)
To: Miaoqian Lin; +Cc: intel-gfx
[-- Attachment #1: Type: text/plain, Size: 450 bytes --]
== Series Details ==
Series: drm/i915/selftests: Fix inconsistent object in IS_ERR and PTR_ERR
URL : https://patchwork.freedesktop.org/series/97868/
State : failure
== Summary ==
Applying: drm/i915/selftests: Fix inconsistent object in IS_ERR and PTR_ERR
Using index info to reconstruct a base tree...
M drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c
Falling back to patching base and 3-way merge...
No changes -- Patch already applied.
[-- Attachment #2: Type: text/html, Size: 944 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Intel-gfx] ✗ Fi.CI.BAT: failure for drm/i915/selftests: Fix inconsistent object in IS_ERR and PTR_ERR
2021-12-10 16:40 ` [Intel-gfx] ✗ Fi.CI.BAT: failure for " Patchwork
@ 2021-12-11 3:15 ` 林妙倩
0 siblings, 0 replies; 3+ messages in thread
From: 林妙倩 @ 2021-12-11 3:15 UTC (permalink / raw)
To: intel-gfx
[-- Attachment #1: Type: text/plain, Size: 721 bytes --]
I have no idea why it failed without a detailed log, from my humble
opinion, this bug indeed exists and is easy to understand, I hope someone
could look into it.
Patchwork <patchwork@emeril.freedesktop.org> 于2021年12月11日周六 00:40写道:
> *Patch Details*
> *Series:* drm/i915/selftests: Fix inconsistent object in IS_ERR and
> PTR_ERR
> *URL:* https://patchwork.freedesktop.org/series/97868/
> *State:* failure
>
> Applying: drm/i915/selftests: Fix inconsistent object in IS_ERR and PTR_ERR
> Using index info to reconstruct a base tree...
> M drivers/gpu/drm/i915/gem/selftests/i915_gem_dmabuf.c
> Falling back to patching base and 3-way merge...
> No changes -- Patch already applied.
>
[-- Attachment #2: Type: text/html, Size: 1279 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-12-13 14:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-10 6:11 [Intel-gfx] [PATCH] drm/i915/selftests: Fix inconsistent object in IS_ERR and PTR_ERR Miaoqian Lin
2021-12-10 16:40 ` [Intel-gfx] ✗ Fi.CI.BAT: failure for " Patchwork
2021-12-11 3:15 ` 林妙倩
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox