summaryrefslogtreecommitdiffstats
path: root/ipc/shm.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2017-09-25 20:38:45 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2017-09-25 20:41:46 -0400
commitb776e4b1a990045a7c70798f1f353c3160c26594 (patch)
tree5325b37ab2d4a58edf0e1c8eaadc054d97eca48f /ipc/shm.c
parent58aff0af757356065f33290d96a9cd46dfbcae88 (diff)
downloadlinux-stable-b776e4b1a990045a7c70798f1f353c3160c26594.tar.gz
linux-stable-b776e4b1a990045a7c70798f1f353c3160c26594.tar.bz2
linux-stable-b776e4b1a990045a7c70798f1f353c3160c26594.zip
fix a typo in put_compat_shm_info()
"uip" misspelled as "up"; unfortunately, the latter happens to be a function and gcc is happy to convert it to void *... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'ipc/shm.c')
-rw-r--r--ipc/shm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipc/shm.c b/ipc/shm.c
index 1e2b1692ba2c..badac463e2c8 100644
--- a/ipc/shm.c
+++ b/ipc/shm.c
@@ -1154,7 +1154,7 @@ static int put_compat_shm_info(struct shm_info *ip,
info.shm_swp = ip->shm_swp;
info.swap_attempts = ip->swap_attempts;
info.swap_successes = ip->swap_successes;
- return copy_to_user(up, &info, sizeof(info));
+ return copy_to_user(uip, &info, sizeof(info));
}
static int copy_compat_shmid_to_user(void __user *buf, struct shmid64_ds *in,