diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2009-01-14 14:13:54 +0100 |
---|---|---|
committer | Heiko Carstens <heiko.carstens@de.ibm.com> | 2009-01-14 14:15:14 +0100 |
commit | 2ed7c03ec17779afb4fcfa3b8c61df61bd4879ba (patch) | |
tree | 4e0fefd574bab5470a02edf439727f472a9663c6 /kernel/exit.c | |
parent | 4c696ba7982501d43dea11dbbaabd2aa8a19cc42 (diff) | |
download | linux-2ed7c03ec17779afb4fcfa3b8c61df61bd4879ba.tar.bz2 |
[CVE-2009-0029] Convert all system calls to return a long
Convert all system calls to return a long. This should be a NOP since all
converted types should have the same size anyway.
With the exception of sys_exit_group which returned void. But that doesn't
matter since the system call doesn't return.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Diffstat (limited to 'kernel/exit.c')
-rw-r--r-- | kernel/exit.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/exit.c b/kernel/exit.c index c7740fa3252c..fac9b040af2c 100644 --- a/kernel/exit.c +++ b/kernel/exit.c @@ -1182,9 +1182,11 @@ do_group_exit(int exit_code) * wait4()-ing process will get the correct exit code - even if this * thread is not the thread group leader. */ -asmlinkage void sys_exit_group(int error_code) +asmlinkage long sys_exit_group(int error_code) { do_group_exit((error_code & 0xff) << 8); + /* NOTREACHED */ + return 0; } static struct pid *task_pid_type(struct task_struct *task, enum pid_type type) |