summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-09-26 03:24:14 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2017-09-26 03:24:14 +0200
commite365806ac289457263a133bd32df8df49897f612 (patch)
tree121636715f9180ad83d792252ae6d479164ec8cc
parentMerge branch 'for-linus' of git://git.kernel.dk/linux-block (diff)
parentfix a typo in put_compat_shm_info() (diff)
downloadlinux-e365806ac289457263a133bd32df8df49897f612.tar.xz
linux-e365806ac289457263a133bd32df8df49897f612.zip
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull compat fix from Al Viro: "I really wish gcc warned about conversions from pointer to function into void *..." * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: fix a typo in put_compat_shm_info()
-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,