fix a typo in put_compat_shm_info()
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 26 Sep 2017 00:38:45 +0000 (20:38 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 26 Sep 2017 00:41:46 +0000 (20:41 -0400)
"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>
ipc/shm.c

index 1e2b1692ba2c6a3a9f4d03c1120334facdb446cf..badac463e2c8ea7a035c73acd385d4d58211e6ac 100644 (file)
--- 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,