Commit baf08ed5 authored by Chris Wilson's avatar Chris Wilson
Browse files

drm/i915/selftests: Set for early exit

Set up a default gt pointer for an early cleanup of igt_spinnter, before
a request is created and set to the active engine's.

Signed-off-by: default avatarChris Wilson <>
Cc: Tvrtko Ursulin <>
Reviewed-by: default avatarTvrtko Ursulin <>
parent a17ce803
......@@ -19,6 +19,7 @@ int igt_spinner_init(struct igt_spinner *spin, struct drm_i915_private *i915)
memset(spin, 0, sizeof(*spin));
spin->i915 = i915;
spin->gt = &i915->gt;
spin->hws = i915_gem_object_create_internal(i915, PAGE_SIZE);
if (IS_ERR(spin->hws)) {
Supports Markdown
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