aboutsummaryrefslogtreecommitdiff
path: root/linux-user/qemu.h
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2018-02-28 14:16:05 -0800
committerLaurent Vivier <laurent@vivier.eu>2018-03-09 19:22:47 +0100
commit78cf339039c325b336442f1d7f3ccc531b22c4a0 (patch)
treeea45610af2fd41961808242ddd8cec5894a24993 /linux-user/qemu.h
parent3c5f6a5f888729f9fbc64211298f7c3e2fb42b64 (diff)
downloadqemu-78cf339039c325b336442f1d7f3ccc531b22c4a0.zip
qemu-78cf339039c325b336442f1d7f3ccc531b22c4a0.tar.gz
qemu-78cf339039c325b336442f1d7f3ccc531b22c4a0.tar.bz2
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> Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Message-Id: <20180228221609.11265-8-jcmvbkbc@gmail.com> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'linux-user/qemu.h')
0 files changed, 0 insertions, 0 deletions