]> git.proxmox.com Git - mirror_qemu.git/commit
linux-user: Rewrite mmap_reserve
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 7 Jul 2023 20:40:48 +0000 (21:40 +0100)
committerRichard Henderson <richard.henderson@linaro.org>
Sat, 15 Jul 2023 07:02:32 +0000 (08:02 +0100)
commit260561d873106c2fd15565b1835c354a725ed678
tree02e502b24a2ef01bde2995d3f9ff365619bd28c2
parentf9cd8f5eca2bb81761b846ca3162d7c9ea263385
linux-user: Rewrite mmap_reserve

Use 'last' variables instead of 'end' variables; be careful
about avoiding overflow.  Assert that the mmap succeeded.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230707204054.8792-21-richard.henderson@linaro.org>
linux-user/mmap.c