summaryrefslogtreecommitdiff
path: root/ipc/sem.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-09-25 18:37:28 -0700
committerAl Viro <viro@zeniv.linux.org.uk>2017-10-11 13:41:41 -0400
commit6aa211e8ce6916d8a0df88b4fbc790e9c78f5d9d (patch)
treec610aa3b7c3a0b36a8577dfd1497cd033e79c79a /ipc/sem.c
parent878e832ade6fc315e6ea59d95824bbb0430c6e8d (diff)
downloadlinux-6aa211e8ce6916d8a0df88b4fbc790e9c78f5d9d.tar.gz
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);
}
}