linux-user: Use do_munmap for target_mmap failure
commit3bfa271e46b506b2ceff41e3b258ad2ddeb25bc3
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 13 Feb 2024 20:40:57 +0000 (13 10:40 -1000)
committerRichard Henderson <richard.henderson@linaro.org>
Thu, 29 Feb 2024 21:35:37 +0000 (29 11:35 -1000)
tree69c4a0d41cf82e1e2b183d364a1975e9d82bab82
parent2952b642a555207748dd961fcbfdc48f198eebb6
linux-user: Use do_munmap for target_mmap failure

For the cases for which the host mmap succeeds, but does
not yield the desired address, use do_munmap to restore
the reserved_va memory reservation.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
linux-user/mmap.c