Message ID | 530c003252e07f1ea9df7f8a9adb1082d3a2eb08.1452521686.git.riku.voipio@linaro.org |
---|---|
State | New |
Headers | show |
diff --git a/linux-user/mmap.c b/linux-user/mmap.c index c6c478e..445e8c6 100644 --- a/linux-user/mmap.c +++ b/linux-user/mmap.c @@ -538,7 +538,7 @@ abi_long target_mmap(abi_ulong start, abi_ulong len, int prot, /* handle the end of the mapping */ if (end < real_end) { ret = mmap_frag(real_end - qemu_host_page_size, - real_end - qemu_host_page_size, real_end, + real_end - qemu_host_page_size, end, prot, flags, fd, offset + real_end - qemu_host_page_size - start); if (ret == -1)