summaryrefslogtreecommitdiff
path: root/ipc/shm.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-09-26 04:37:28 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2017-10-11 20:41:41 +0300
commit6aa211e8ce6916d8a0df88b4fbc790e9c78f5d9d (patch)
treec610aa3b7c3a0b36a8577dfd1497cd033e79c79a /ipc/shm.c
parent878e832ade6fc315e6ea59d95824bbb0430c6e8d (diff)
downloadlinux-6aa211e8ce6916d8a0df88b4fbc790e9c78f5d9d.tar.xz
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/shm.c')
-rw-r--r--ipc/shm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipc/shm.c b/ipc/shm.c
index 1b3adfe3c60e..41706416a3c4 100644
--- a/ipc/shm.c
+++ b/ipc/shm.c
@@ -1193,10 +1193,10 @@ static int copy_compat_shmid_from_user(struct shmid64_ds *out, void __user *buf,
{
memset(out, 0, sizeof(*out));
if (version == IPC_64) {
- struct compat_shmid64_ds *p = buf;
+ struct compat_shmid64_ds __user *p = buf;
return get_compat_ipc64_perm(&out->shm_perm, &p->shm_perm);
} else {
- struct compat_shmid_ds *p = buf;
+ struct compat_shmid_ds __user *p = buf;
return get_compat_ipc_perm(&out->shm_perm, &p->shm_perm);
}
}