diff options
author | Dominik Brodowski <[email protected]> | 2018-03-17 15:18:30 +0100 |
---|---|---|
committer | Dominik Brodowski <[email protected]> | 2018-04-02 20:15:01 +0200 |
commit | 6b27aef09fea32b805a8c81287b1bb80362dadb0 (patch) | |
tree | c7188fcb528eeb261b62bbbfebb5466881849c0a /lib/mpi/mpi-bit.c | |
parent | d53238cd51a80f6f2e5b9d64830c62e2086787bd (diff) |
kexec: call do_kexec_load() in compat syscall directly
do_kexec_load() can be called directly by compat_sys_kexec() as long as
the same parameters checks are completed which are currently handled
(also) by sys_kexec(). Therefore, move those to kexec_load_check(),
call that newly introduced helper function from both sys_kexec() and
compat_sys_kexec(), and duplicate the remaining code from sys_kexec()
in compat_sys_kexec().
This patch is part of a series which removes in-kernel calls to syscalls.
On this basis, the syscall entry path can be streamlined. For details, see
http://lkml.kernel.org/r/[email protected]
Cc: Eric Biederman <[email protected]>
Cc: [email protected]
Signed-off-by: Dominik Brodowski <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions