* [PATCH] sparse annotations for ipc/sem
@ 2003-08-11 16:48 davej
0 siblings, 0 replies; only message in thread
From: davej @ 2003-08-11 16:48 UTC (permalink / raw)
To: torvalds; +Cc: linux-kernel
diff -urpN --exclude-from=/home/davej/.exclude bk-linus/ipc/sem.c linux-2.5/ipc/sem.c
--- bk-linus/ipc/sem.c 2003-07-08 18:31:55.000000000 +0100
+++ linux-2.5/ipc/sem.c 2003-07-13 16:55:51.000000000 +0100
@@ -425,7 +425,7 @@ static void freeary (struct sem_array *s
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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-08-11 16:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-11 16:48 [PATCH] sparse annotations for ipc/sem davej
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).