Skip to content
Commit f5507e04 authored by Franklin \"Snaipe\" Mathieu's avatar Franklin \"Snaipe\" Mathieu Committed by Michael Tokarev
Browse files

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: default avatarFranklin "Snaipe" Mathieu <snaipe@diacritic.io>
Cc: Riku Voipio <riku.voipio@linaro.org>
Cc: Aurelien Jarno <aurelien@aurel32.net>
Reviewed-by: default avatarLaurent Vivier <laurent@vivier.eu>
Signed-off-by: default avatarMichael Tokarev <mjt@tls.msk.ru>
parent 6c608953
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment