summaryrefslogtreecommitdiffstats
path: root/hw
diff options
context:
space:
mode:
authorFranklin \"Snaipe\" Mathieu2017-02-17 09:58:00 +0100
committerMichael Tokarev2017-02-28 07:03:39 +0100
commitf5507e0448bd34473af72509297617a783049024 (patch)
tree04280ed0fb5ac6b7dcc462b609908a56f0e42af8 /hw
parenthw/acpi/tco.c: fix tco timer stop (diff)
downloadqemu-f5507e0448bd34473af72509297617a783049024.tar.gz
qemu-f5507e0448bd34473af72509297617a783049024.tar.xz
qemu-f5507e0448bd34473af72509297617a783049024.zip
syscall: fixed mincore(2) not failing with ENOMEM
The current implementation of the mincore(2) syscall sets errno to EFAULT when the region identified by the first two parameters is invalid. This goes against the man page specification, where mincore(2) should only fail with EFAULT when the third parameter is an invalid address; and fail with ENOMEM when the checked region does not point to mapped memory. Signed-off-by: Franklin "Snaipe" Mathieu <snaipe@diacritic.io> Cc: Riku Voipio <riku.voipio@linaro.org> Cc: Aurelien Jarno <aurelien@aurel32.net> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'hw')
0 files changed, 0 insertions, 0 deletions