diff options
author | Dave Airlie <airlied@redhat.com> | 2025-02-14 05:11:19 +0300 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2025-02-14 05:11:28 +0300 |
commit | d70c6ae53d790d3528a14092ae208d0ed125d7a5 (patch) | |
tree | 5a8000b3805ba99de3b528b5a3e21ed46ba49a09 | |
parent | 981724b463141cf828744320ee8c93468d5dbe01 (diff) | |
parent | 53139b3f9998ea07289e7b70b909fea2264a0de9 (diff) | |
download | linux-d70c6ae53d790d3528a14092ae208d0ed125d7a5.tar.xz |
Merge tag 'drm-intel-fixes-2025-02-13' of https://gitlab.freedesktop.org/drm/i915/kernel into drm-fixes
- Selftest fix: avoid using uninitialized context
Signed-off-by: Dave Airlie <airlied@redhat.com>
From: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/Z64qg13R_72iN3_X@intel.com
-rw-r--r-- | drivers/gpu/drm/i915/selftests/i915_gem_gtt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/selftests/i915_gem_gtt.c b/drivers/gpu/drm/i915/selftests/i915_gem_gtt.c index 5c397a2df70e..5d27e1c733c5 100644 --- a/drivers/gpu/drm/i915/selftests/i915_gem_gtt.c +++ b/drivers/gpu/drm/i915/selftests/i915_gem_gtt.c @@ -168,7 +168,7 @@ static int igt_ppgtt_alloc(void *arg) return PTR_ERR(ppgtt); if (!ppgtt->vm.allocate_va_range) - goto err_ppgtt_cleanup; + goto ppgtt_vm_put; /* * While we only allocate the page tables here and so we could @@ -236,7 +236,7 @@ err_ppgtt_cleanup: goto retry; } i915_gem_ww_ctx_fini(&ww); - +ppgtt_vm_put: i915_vm_put(&ppgtt->vm); return err; } |