From: Al Viro Date: Tue, 26 Sep 2017 00:38:45 +0000 (-0400) Subject: fix a typo in put_compat_shm_info() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b776e4b1a990045a7c70798f1f353c3160c26594;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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,