diff options
author | Krzysztof Karas <krzysztof.karas@intel.com> | 2025-01-30 12:19:31 +0300 |
---|---|---|
committer | Andi Shyti <andi.shyti@linux.intel.com> | 2025-02-06 15:21:04 +0300 |
commit | 8d8334632ea62424233ac6529712868241d0f8df (patch) | |
tree | 19d85fd1d05fc211a904c9a9f4631de427da6cad /rust/helpers/helpers.c | |
parent | 87b593d79864e6e82cb00aa3d837094a1643e272 (diff) | |
download | linux-8d8334632ea62424233ac6529712868241d0f8df.tar.xz |
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 <krzysztof.karas@intel.com>
Reviewed-by: Mikolaj Wasiak <mikolaj.wasiak@intel.com>
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/iuaonpjc3rywmvhna6umjlvzilocn2uqsrxfxfob24e2taocbi@lkaivvfp4777
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions