[PATCH 25/35] FIXUP: Only i915_vm_put if pc->vm != NULL
Jason Ekstrand
jason at jlekstrand.net
Tue Jun 8 22:24:03 UTC 2021
---
drivers/gpu/drm/i915/gem/i915_gem_context.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/gem/i915_gem_context.c b/drivers/gpu/drm/i915/gem/i915_gem_context.c
index f6f877f946c43..4972b8c91d942 100644
--- a/drivers/gpu/drm/i915/gem/i915_gem_context.c
+++ b/drivers/gpu/drm/i915/gem/i915_gem_context.c
@@ -298,7 +298,8 @@ static int set_proto_ctx_vm(struct drm_i915_file_private *fpriv,
if (!vm)
return -ENOENT;
- i915_vm_put(pc->vm);
+ if (pc->vm)
+ i915_vm_put(pc->vm);
pc->vm = vm;
return 0;
--
2.31.1
More information about the Intel-gfx-trybot
mailing list