Commit [7ff5eb] Maximize Restore History

syscalls/mprotect: Fix mmap() error checks.

The addr < 0 is always true. Make use of proper MAP_FAILED constant
instead.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>

Cyril Hrubis Cyril Hrubis 2013-06-04

changed testcases/kernel/syscalls/mprotect/mprotect01.c
changed testcases/kernel/syscalls/mprotect/mprotect03.c
testcases/kernel/syscalls/mprotect/mprotect01.c Diff Switch to side-by-side view
Loading...
testcases/kernel/syscalls/mprotect/mprotect03.c Diff Switch to side-by-side view
Loading...