diff options
author | 2023-08-20 12:38:49 -0700 | |
---|---|---|
committer | 2023-09-01 13:35:27 -0700 | |
commit | ceda5688b650646248f269a992c06b11148c5759 (patch) | |
tree | 21189e4e130433246adfb66243200abb36758f0b /scripts/qapi/source.py | |
parent | linux-user: Use WITH_MMAP_LOCK_GUARD in target_{shmat,shmdt} (diff) | |
download | qemu-ceda5688b650646248f269a992c06b11148c5759.tar.xz qemu-ceda5688b650646248f269a992c06b11148c5759.zip |
linux-user: Fix shmdt
If the shm region is not mapped at shmaddr, EINVAL.
Do not unmap the region until the syscall succeeds.
Use mmap_reserve_or_unmap to preserve reserved_va semantics.
Tested-by: Helge Deller <deller@gmx.de>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'scripts/qapi/source.py')
0 files changed, 0 insertions, 0 deletions