We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec6ec9c commit fde789eCopy full SHA for fde789e
drivers/gpu/drm/i915/gem/i915_gem_ttm.c
@@ -1067,11 +1067,12 @@ static vm_fault_t vm_fault_ttm(struct vm_fault *vmf)
1067
.interruptible = true,
1068
.no_wait_gpu = true, /* should be idle already */
1069
};
1070
+ int err;
1071
1072
GEM_BUG_ON(!bo->ttm || !(bo->ttm->page_flags & TTM_TT_FLAG_SWAPPED));
1073
- ret = ttm_bo_validate(bo, i915_ttm_sys_placement(), &ctx);
1074
- if (ret) {
+ err = ttm_bo_validate(bo, i915_ttm_sys_placement(), &ctx);
1075
+ if (err) {
1076
dma_resv_unlock(bo->base.resv);
1077
return VM_FAULT_SIGBUS;
1078
}
0 commit comments