summaryrefslogtreecommitdiffstats
path: root/ipc/sem.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-09-26 03:37:28 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2017-10-11 19:41:41 +0200
commit6aa211e8ce6916d8a0df88b4fbc790e9c78f5d9d (patch)
treec610aa3b7c3a0b36a8577dfd1497cd033e79c79a /ipc/sem.c
parentacct.h: get rid of detritus (diff)
downloadlinux-6aa211e8ce6916d8a0df88b4fbc790e9c78f5d9d.tar.xz
linux-6aa211e8ce6916d8a0df88b4fbc790e9c78f5d9d.zip
fix address space warnings in ipc/
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'ipc/sem.c')
-rw-r--r--ipc/sem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipc/sem.c b/ipc/sem.c
index f7385bce5fd3..6220e9616207 100644
--- a/ipc/sem.c
+++ b/ipc/sem.c
@@ -1636,10 +1636,10 @@ static int copy_compat_semid_from_user(struct semid64_ds *out, void __user *buf,
{
memset(out, 0, sizeof(*out));
if (version == IPC_64) {
- struct compat_semid64_ds *p = buf;
+ struct compat_semid64_ds __user *p = buf;
return get_compat_ipc64_perm(&out->sem_perm, &p->sem_perm);
} else {
- struct compat_semid_ds *p = buf;
+ struct compat_semid_ds __user *p = buf;
return get_compat_ipc_perm(&out->sem_perm, &p->sem_perm);
}
}