Skip to content
Commit 70ba28f7 authored by Lucas A. M. Magalhaes's avatar Lucas A. M. Magalhaes Committed by Tulio Magno Quites Machado Filho
Browse files

Fix tst-pkey.c pkey_alloc return checks and manual



This test was failing in some powerpc systems as it was not checking
for ENOSPC return.

As said on the Linux man-pages and can be observed by the implementation
at mm/mprotect.c in the Linux Kernel source.  The syscall pkey_alloc can
return EINVAL or ENOSPC.  ENOSPC will indicate either that all keys are
in use or that the kernel does not support pkeys.

Reviewed-by: default avatarGabriel F. T. Gomes <gabriel@inconstante.net.br>
parent 18363b4f
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