diff options
| author | Krzysztof Karas <[email protected]> | 2025-01-30 09:19:31 +0000 |
|---|---|---|
| committer | Andi Shyti <[email protected]> | 2025-02-06 12:21:04 +0000 |
| commit | 8d8334632ea62424233ac6529712868241d0f8df (patch) | |
| tree | 19d85fd1d05fc211a904c9a9f4631de427da6cad /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | |
| parent | drm/i915/pmu: Drop custom hotplug code (diff) | |
| download | kernel-8d8334632ea62424233ac6529712868241d0f8df.tar.gz kernel-8d8334632ea62424233ac6529712868241d0f8df.zip | |
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: 480ae79537b2 ("drm/i915/selftests: Prepare gtt tests for obj->mm.lock removal")
Signed-off-by: Krzysztof Karas <[email protected]>
Reviewed-by: Mikolaj Wasiak <[email protected]>
Reviewed-by: Andi Shyti <[email protected]>
Signed-off-by: Andi Shyti <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/iuaonpjc3rywmvhna6umjlvzilocn2uqsrxfxfob24e2taocbi@lkaivvfp4777
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions
