diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2018-02-27 15:28:44 -0800 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2018-03-13 11:30:22 -0700 |
commit | 72d75bb3166047c74db2931eecb92f9684e70ead (patch) | |
tree | e8dfa00e67546793ff7fdf5ba95996a99696cb52 /default-configs | |
parent | 21b869a321871728077a5d0469a05f0d34041650 (diff) |
linux-user: fix target_mprotect/target_munmap error return values
target_mprotect/target_munmap return value goes through get_errno at the
call site, thus the functions must either set errno to host error code
and return -1 or return negative guest error code. Do the latter.
Cc: qemu-stable@nongnu.org
Cc: Riku Voipio <riku.voipio@iki.fi>
Cc: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'default-configs')
0 files changed, 0 insertions, 0 deletions