aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ring_mux.c
diff options
context:
space:
mode:
authorLiam R. Howlett <[email protected]>2023-06-18 00:47:08 +0000
committerLinus Torvalds <[email protected]>2023-06-18 16:32:17 +0000
commit606c812eb1d5b5fb0dd9e330ca94b52d7c227830 (patch)
tree2458e45ab6a53c3d9b1424c9227fbf38898a6a23 /drivers/gpu/drm/amd/amdgpu/amdgpu_ring_mux.c
parentMerge tag 'staging-6.4-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/... (diff)
downloadkernel-606c812eb1d5b5fb0dd9e330ca94b52d7c227830.tar.gz
kernel-606c812eb1d5b5fb0dd9e330ca94b52d7c227830.zip
mm/mmap: Fix error path in do_vmi_align_munmap()
The error unrolling was leaving the VMAs detached in many cases and leaving the locked_vm statistic altered, and skipping the unrolling entirely in the case of the vma tree write failing. Fix the error path by re-attaching the detached VMAs and adding the necessary goto for the failed vma tree write, and fix the locked_vm statistic by only updating after the vma tree write succeeds. Fixes: 763ecb035029 ("mm: remove the vma linked list") Reported-by: Vegard Nossum <[email protected]> Signed-off-by: Liam R. Howlett <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ring_mux.c')
0 files changed, 0 insertions, 0 deletions