diff options
| author | Dave Jones <davej@redhat.com> | 2003-08-13 09:13:38 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.osdl.org> | 2003-08-13 09:13:38 -0700 |
| commit | 830ae0da91b9cbfb453b885010a16fe0c8b170b5 (patch) | |
| tree | 815e87b20038b834879591372511a2b1556832a3 /ipc | |
| parent | 9f31c724adc5ecdbfa4bcfa066703709c7a98748 (diff) | |
[PATCH] sparse annotations for ipc/sem
Diffstat (limited to 'ipc')
| -rw-r--r-- | ipc/sem.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ipc/sem.c b/ipc/sem.c index d1a54864f753..b0d886377bb7 100644 --- a/ipc/sem.c +++ b/ipc/sem.c @@ -425,7 +425,7 @@ static void freeary (struct sem_array *sma, int id) ipc_rcu_free(sma, size); } -static unsigned long copy_semid_to_user(void *buf, struct semid64_ds *in, int version) +static unsigned long copy_semid_to_user(void __user *buf, struct semid64_ds *in, int version) { switch(version) { case IPC_64: @@ -686,7 +686,7 @@ struct sem_setbuf { mode_t mode; }; -static inline unsigned long copy_semid_from_user(struct sem_setbuf *out, void *buf, int version) +static inline unsigned long copy_semid_from_user(struct sem_setbuf *out, void __user *buf, int version) { switch(version) { case IPC_64: @@ -960,13 +960,13 @@ out: return un; } -asmlinkage long sys_semop (int semid, struct sembuf *tsops, unsigned nsops) +asmlinkage long sys_semop (int semid, struct sembuf __user *tsops, unsigned nsops) { return sys_semtimedop(semid, tsops, nsops, NULL); } -asmlinkage long sys_semtimedop(int semid, struct sembuf *tsops, - unsigned nsops, const struct timespec *timeout) +asmlinkage long sys_semtimedop(int semid, struct sembuf __user *tsops, + unsigned nsops, const struct timespec __user *timeout) { int error = -EINVAL; struct sem_array *sma; |
