[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190204183324.30775-1-alicef@alicef.me>
Date: Tue, 5 Feb 2019 03:33:28 +0900
From: Alice Ferrazzi <alicef@...cef.me>
To: jpoimboe@...hat.com, jeyu@...nel.org, jikos@...nel.org,
mbenes@...e.cz, pmladek@...e.com, live-patching@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: Alice Ferrazzi <alice.ferrazzi@...aclelinux.com>
Subject: [PATCH v2] livepatch: core: Return EOPNOTSUPP instead of ENOSYS
From: Alice Ferrazzi <alice.ferrazzi@...aclelinux.com>
As a result of an unsupported operation is better to use EOPNOTSUPP
as error code.
ENOSYS is only used for 'invalid syscall nr' and nothing else.
Signed-off-by: Alice Ferrazzi <alice.ferrazzi@...aclelinux.com>
---
Changes v1->v2:
- Use EOPNOTSUPP instead of ENOTSUPP (Petr)
kernel/livepatch/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/livepatch/core.c b/kernel/livepatch/core.c
index fe1993399823..075eb5c0813d 100644
--- a/kernel/livepatch/core.c
+++ b/kernel/livepatch/core.c
@@ -1004,7 +1004,7 @@ int klp_enable_patch(struct klp_patch *patch)
if (!klp_have_reliable_stack()) {
pr_err("This architecture doesn't have support for the livepatch consistency model.\n");
- return -ENOSYS;
+ return -EOPNOTSUPP;
}
--
2.19.2
Powered by blists - more mailing lists