Skip to content
Snippets Groups Projects
Unverified Commit 53139b3f authored by Krzysztof Karas's avatar Krzysztof Karas Committed by Rodrigo Vivi
Browse files

drm/i915/selftests: avoid using uninitialized context


There is an error path in igt_ppgtt_alloc(), which leads
to ww object being passed down to i915_gem_ww_ctx_fini() without
initialization. Correct that by only putting ppgtt->vm and
returning early.

Fixes: 480ae795 ("drm/i915/selftests: Prepare gtt tests for obj->mm.lock removal")
Signed-off-by: default avatarKrzysztof Karas <krzysztof.karas@intel.com>
Reviewed-by: default avatarMikolaj Wasiak <mikolaj.wasiak@intel.com>
Reviewed-by: default avatarAndi Shyti <andi.shyti@linux.intel.com>
Signed-off-by: default avatarAndi Shyti <andi.shyti@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/iuaonpjc3rywmvhna6umjlvzilocn2uqsrxfxfob24e2taocbi@lkaivvfp4777


(cherry picked from commit 8d833463)
Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
parent a64dcfb4
No related branches found
Tags v5.15-rc2
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment