Skip to content

Commit b776e4b

Browse files
author
Al Viro
committed
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 <[email protected]>
1 parent 58aff0a commit b776e4b

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)