* [PATCH v2] drm/i915/gem: handle drm_vma_node_allow_once() return value
@ 2025-10-14 6:44 Alexandr Sapozhnikov
2025-10-14 14:08 ` ✗ LGCI.VerificationFailed: failure for " Patchwork
0 siblings, 1 reply; 2+ messages in thread
From: Alexandr Sapozhnikov @ 2025-10-14 6:44 UTC (permalink / raw)
To: Jani Nikula, Joonas Lahtinen, Rodrigo Vivi, Tvrtko Ursulin,
David Airlie, Daniel Vetter
Cc: Alexandr Sapozhnikov, intel-gfx, dri-devel, linux-kernel,
linux-media, lvc-project
Add missing return value handling of drm_vma_node_allow_once()
since the failure to insert the file tag for the node should
indicate the whole mmap_offset_attach() failed as well.
v2: update changelog and return error directly as Chris Wilson,
Andi Shyti and Ville Syrjala suggested.
link to v1: https://lore.kernel.org/all/20251002084828.11-1-alsp705@gmail.com/
Found by Linux Verification Center (linuxtesting.org) with svace.
Signed-off-by: Alexandr Sapozhnikov <alsp705@gmail.com>
---
drivers/gpu/drm/i915/gem/i915_gem_mman.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/i915/gem/i915_gem_mman.c b/drivers/gpu/drm/i915/gem/i915_gem_mman.c
index 75f5b0e871ef..eb76f8f2bd95 100644
--- a/drivers/gpu/drm/i915/gem/i915_gem_mman.c
+++ b/drivers/gpu/drm/i915/gem/i915_gem_mman.c
@@ -758,8 +758,11 @@ mmap_offset_attach(struct drm_i915_gem_object *obj,
mmo = insert_mmo(obj, mmo);
GEM_BUG_ON(lookup_mmo(obj, mmap_type) != mmo);
out:
- if (file)
- drm_vma_node_allow_once(&mmo->vma_node, file);
+ if (file) {
+ err = drm_vma_node_allow_once(&mmo->vma_node, file);
+ if (err)
+ return ERR_PTR(err);
+ }
return mmo;
err:
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* ✗ LGCI.VerificationFailed: failure for drm/i915/gem: handle drm_vma_node_allow_once() return value
2025-10-14 6:44 [PATCH v2] drm/i915/gem: handle drm_vma_node_allow_once() return value Alexandr Sapozhnikov
@ 2025-10-14 14:08 ` Patchwork
0 siblings, 0 replies; 2+ messages in thread
From: Patchwork @ 2025-10-14 14:08 UTC (permalink / raw)
To: Alexandr Sapozhnikov; +Cc: intel-gfx
== Series Details ==
Series: drm/i915/gem: handle drm_vma_node_allow_once() return value
URL : https://patchwork.freedesktop.org/series/155912/
State : failure
== Summary ==
Address 'alsp705@gmail.com' is not on the allowlist, which prevents CI from being triggered for this patch.
If you want Intel GFX CI to accept this address, please contact the script maintainers at i915-ci-infra@lists.freedesktop.org.
Exception occurred during validation, bailing out!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-10-14 14:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-14 6:44 [PATCH v2] drm/i915/gem: handle drm_vma_node_allow_once() return value Alexandr Sapozhnikov
2025-10-14 14:08 ` ✗ LGCI.VerificationFailed: failure for " Patchwork
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).