Commit 375bfca3 authored by Alice Ferrazzi's avatar Alice Ferrazzi Committed by Petr Mladek
Browse files

livepatch: core: Return EOPNOTSUPP instead of ENOSYS



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: default avatarAlice Ferrazzi <alice.ferrazzi@miraclelinux.com>
Acked-by: default avatarMiroslav Benes <mbenes@suse.cz>
Acked-by: default avatarJosh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: default avatarPetr Mladek <pmladek@suse.com>
parent bae05437
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1036,7 +1036,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;
	}