diff options
author | Krzysztof Karas <krzysztof.karas@intel.com> | 2025-07-30 07:39:23 +0000 |
---|---|---|
committer | Andi Shyti <andi.shyti@kernel.org> | 2025-08-08 23:03:43 -0100 |
commit | c4d0f59ded1efbf0004dfdfffb9050caba234993 (patch) | |
tree | 305a5458d55cb06b56205b815b303da27163cea7 /rust/helpers/bitops.c | |
parent | c8bdf3165fccadac12d670e94ea4a9a893a5a813 (diff) |
drm/i915/selftests: Do not overwrite error code after intel_context_migrate_clear() call
Currently this function's error code is stored in err variable,
which, if a i915_request is present, will be immediately
overwritten by return from dma_resv_reserve_fences(). Call DMA
functions only if intel_context_migrate_clear() succeeded.
Suggested-by: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Krzysztof Karas <krzysztof.karas@intel.com>
Reviewed-by: Sebastian Brzezinka <sebastian.brzezinka@intel.com>
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Signed-off-by: Andi Shyti <andi.shyti@linux.intel.com>
Link: https://lore.kernel.org/r/c0348e052bcb2870acdc15d60f5389fbdf4ef886.1753859971.git.krzysztof.karas@intel.com
Diffstat (limited to 'rust/helpers/bitops.c')
0 files changed, 0 insertions, 0 deletions