mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
[CVE-2009-0029] System call wrappers part 25
Signed-off-by: Heiko Carstens <[email protected]>
This commit is contained in:
parent
e48fbb699f
commit
d5460c9974
3 changed files with 12 additions and 11 deletions
|
|
@ -308,7 +308,7 @@ static inline int sem_more_checks(struct kern_ipc_perm *ipcp,
|
|||
return 0;
|
||||
}
|
||||
|
||||
asmlinkage long sys_semget(key_t key, int nsems, int semflg)
|
||||
SYSCALL_DEFINE3(semget, key_t, key, int, nsems, int, semflg)
|
||||
{
|
||||
struct ipc_namespace *ns;
|
||||
struct ipc_ops sem_ops;
|
||||
|
|
@ -1055,8 +1055,8 @@ out:
|
|||
return un;
|
||||
}
|
||||
|
||||
asmlinkage long sys_semtimedop(int semid, struct sembuf __user *tsops,
|
||||
unsigned nsops, const struct timespec __user *timeout)
|
||||
SYSCALL_DEFINE4(semtimedop, int, semid, struct sembuf __user *, tsops,
|
||||
unsigned, nsops, const struct timespec __user *, timeout)
|
||||
{
|
||||
int error = -EINVAL;
|
||||
struct sem_array *sma;
|
||||
|
|
@ -1232,7 +1232,8 @@ out_free:
|
|||
return error;
|
||||
}
|
||||
|
||||
asmlinkage long sys_semop (int semid, struct sembuf __user *tsops, unsigned nsops)
|
||||
SYSCALL_DEFINE3(semop, int, semid, struct sembuf __user *, tsops,
|
||||
unsigned, nsops)
|
||||
{
|
||||
return sys_semtimedop(semid, tsops, nsops, NULL);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue