From e223d8ef50061cae4b9fd3ed0ce8ba0da698703d Mon Sep 17 00:00:00 2001 From: Christopher Albert Date: Mon, 17 Feb 2020 20:55:01 +0100 Subject: [PATCH] Correct error code for sys_personality --- kernel/getset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/getset.c b/kernel/getset.c index 1b8795b815..ecc20904f3 100644 --- a/kernel/getset.c +++ b/kernel/getset.c @@ -177,5 +177,5 @@ dword_t sys_personality(dword_t pers) { return 0x00000000; if (pers == 0x00000000) // set personality to Linux return 0x00000000; - return -1; // otherwise return error + return _EINVAL; // otherwise return error }