linux-user: Propagate failure in mmap_reserve_or_unmap back to target_munmap
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 3 Oct 2023 20:59:55 +0000 (13:59 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 18 Oct 2023 22:32:16 +0000 (15:32 -0700)
commit912ff698cae8879d981157fd8cca1354248fddcc
tree260f1bb40a780a4882b9f4e4c9d95524d49e32f4
parenta9f6004f677923f620e0927a626d1bdaa1eb2166
linux-user: Propagate failure in mmap_reserve_or_unmap back to target_munmap

Do not assert success, but return any failure received.
Additionally, fix the method of earlier error return in target_munmap.

Reported-by: Andreas Schwab <schwab@suse.de>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
linux-user/mmap.c