mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
fs/compat: convert to COMPAT_SYSCALL_DEFINE
Convert all compat system call functions where all parameter types have a size of four or less than four bytes, or are pointer types to COMPAT_SYSCALL_DEFINE. The implicit casts within COMPAT_SYSCALL_DEFINE will perform proper zero and sign extension to 64 bit of all parameters if needed. Signed-off-by: Heiko Carstens <[email protected]>
This commit is contained in:
parent
875ec3da4c
commit
625b1d7e81
2 changed files with 39 additions and 40 deletions
|
|
@ -1619,9 +1619,9 @@ SYSCALL_DEFINE3(execve,
|
|||
return do_execve(getname(filename), argv, envp);
|
||||
}
|
||||
#ifdef CONFIG_COMPAT
|
||||
asmlinkage long compat_sys_execve(const char __user * filename,
|
||||
const compat_uptr_t __user * argv,
|
||||
const compat_uptr_t __user * envp)
|
||||
COMPAT_SYSCALL_DEFINE3(execve, const char __user *, filename,
|
||||
const compat_uptr_t __user *, argv,
|
||||
const compat_uptr_t __user *, envp)
|
||||
{
|
||||
return compat_do_execve(getname(filename), argv, envp);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue