Commit 68ba71e3 authored by Dan Carpenter's avatar Dan Carpenter Committed by Maarten Lankhorst

drm/i915: Fix an error code i915_gem_object_copy_blt()

This code should use "vma[1]" instead of "vma".  The "vma" variable is a
valid pointer.

Fixes: 6b050304 ("drm/i915: Convert i915_gem_object/client_blt.c to use ww locking as well, v2.")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarMika Kuoppala <mika.kuoppala@linux.intel.com>
Signed-off-by: default avatarMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200911075243.GG12635@kadam
parent 4ff64bcf
...@@ -364,7 +364,7 @@ int i915_gem_object_copy_blt(struct drm_i915_gem_object *src, ...@@ -364,7 +364,7 @@ int i915_gem_object_copy_blt(struct drm_i915_gem_object *src,
vma[1] = i915_vma_instance(dst, vm, NULL); vma[1] = i915_vma_instance(dst, vm, NULL);
if (IS_ERR(vma[1])) if (IS_ERR(vma[1]))
return PTR_ERR(vma); return PTR_ERR(vma[1]);
i915_gem_ww_ctx_init(&ww, true); i915_gem_ww_ctx_init(&ww, true);
intel_engine_pm_get(ce->engine); intel_engine_pm_get(ce->engine);
......
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