Skip to content

Commit e365806

Browse files
committed
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()
2 parents 19240e6 + b776e4b commit e365806

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ipc/shm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1154,7 +1154,7 @@ static int put_compat_shm_info(struct shm_info *ip,
11541154
info.shm_swp = ip->shm_swp;
11551155
info.swap_attempts = ip->swap_attempts;
11561156
info.swap_successes = ip->swap_successes;
1157-
return copy_to_user(up, &info, sizeof(info));
1157+
return copy_to_user(uip, &info, sizeof(info));
11581158
}
11591159

11601160
static int copy_compat_shmid_to_user(void __user *buf, struct shmid64_ds *in,

0 commit comments

Comments
 (0)