diff options
| author | José Roberto de Souza <[email protected]> | 2021-05-17 20:21:17 +0000 |
|---|---|---|
| committer | José Roberto de Souza <[email protected]> | 2021-05-18 18:00:07 +0000 |
| commit | ec279384c6a02cf04a96054e82b1294a7aad6577 (patch) | |
| tree | 32ec31689dcbb4f130db260d610d0867f1cd1153 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | |
| parent | drm/i915/gt: Disable HiZ Raw Stall Optimization on broken gen7 (diff) | |
| download | kernel-ec279384c6a02cf04a96054e82b1294a7aad6577.tar.gz kernel-ec279384c6a02cf04a96054e82b1294a7aad6577.zip | |
drm/i915: Initialize err in remap_io_sg()
If the do while loop breaks in 'if (!sg_dma_len(sgl))' in the first
iteration, err is uninitialized causing a wrong call to zap_vma_ptes().
But that is impossible to happen as a scatterlist must have at least
one valid segment.
Anyways to avoid more reports from static checkers initializing ret
here.
Fixes: b12d691ea5e0 ("i915: fix remap_io_sg to verify the pgprot")
Reviewed-by: Christoph Hellwig <[email protected]>
Cc: Christoph Hellwig <[email protected]>
Signed-off-by: James Ausmus <[email protected]>
Signed-off-by: José Roberto de Souza <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
0 files changed, 0 insertions, 0 deletions
