Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b776e4b1 authored by Al Viro's avatar Al Viro
Browse files

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: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 58aff0af
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,