Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP1:Update
kexec-tools.16815
kexec-tools-Return-ENOSYS-when-kexec-does-not-k...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File kexec-tools-Return-ENOSYS-when-kexec-does-not-know.patch of Package kexec-tools.16815
From: Michal Suchanek <msuchanek@suse.de> Date: Mon, 26 Feb 2018 12:12:38 +0100 Subject: kexec: Return -ENOSYS when kexec does not know how to call KEXEC_FILE_LOAD References: bsc#1080916, boo#1076839 Upstream: merged Git-commit: e810acd57d9fc2d7ba3b0e95d470c20de9948462 When the kernel does not know a syscall number it returns -ENOSYS but when kexec does not know a syscall number it returns -1. Return -ENOSYS from kexec as well. Signed-off-by: Michal Suchanek <msuchanek@suse.de> --- kexec/kexec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kexec/kexec.c b/kexec/kexec.c index cfd837c1b6bb..ab8cff7fe083 100644 --- a/kexec/kexec.c +++ b/kexec/kexec.c @@ -1166,7 +1166,7 @@ static int do_kexec_file_load(int fileind, int argc, char **argv, if (!is_kexec_file_load_implemented()) { fprintf(stderr, "syscall kexec_file_load not available.\n"); - return -1; + return -ENOSYS; } if (argc - fileind <= 0) { -- 2.13.6
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor