diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-11-17 15:54:01 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-11-17 15:54:01 -0500 |
commit | ca5b857cb0f42986520abd9dbb0c2508067342b2 (patch) | |
tree | 7418db33a7156b33bbdf6fff337f5f04e0c4137c /ipc/msg.c | |
parent | a0e136e5da98f10ecb41a673374a04102af45e2b (diff) | |
parent | c02b1a9b41c2e728289f96850580a3651e0a8b5f (diff) |
Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull misc vfs updates from Al Viro:
"Assorted stuff, really no common topic here"
* 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
vfs: grab the lock instead of blocking in __fd_install during resizing
vfs: stop clearing close on exec when closing a fd
include/linux/fs.h: fix comment about struct address_space
fs: make fiemap work from compat_ioctl
coda: fix 'kernel memory exposure attempt' in fsync
pstore: remove unneeded unlikely()
vfs: remove unneeded unlikely()
stubs for mount_bdev() and kill_block_super() in !CONFIG_BLOCK case
make vfs_ustat() static
do_handle_open() should be static
elf_fdpic: fix unused variable warning
fold destroy_super() into __put_super()
new helper: destroy_unused_super()
fix address space warnings in ipc/
acct.h: get rid of detritus
Diffstat (limited to 'ipc/msg.c')
-rw-r--r-- | ipc/msg.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -591,13 +591,13 @@ static int copy_compat_msqid_from_user(struct msqid64_ds *out, void __user *buf, | |||
591 | { | 591 | { |
592 | memset(out, 0, sizeof(*out)); | 592 | memset(out, 0, sizeof(*out)); |
593 | if (version == IPC_64) { | 593 | if (version == IPC_64) { |
594 | struct compat_msqid64_ds *p = buf; | 594 | struct compat_msqid64_ds __user *p = buf; |
595 | if (get_compat_ipc64_perm(&out->msg_perm, &p->msg_perm)) | 595 | if (get_compat_ipc64_perm(&out->msg_perm, &p->msg_perm)) |
596 | return -EFAULT; | 596 | return -EFAULT; |
597 | if (get_user(out->msg_qbytes, &p->msg_qbytes)) | 597 | if (get_user(out->msg_qbytes, &p->msg_qbytes)) |
598 | return -EFAULT; | 598 | return -EFAULT; |
599 | } else { | 599 | } else { |
600 | struct compat_msqid_ds *p = buf; | 600 | struct compat_msqid_ds __user *p = buf; |
601 | if (get_compat_ipc_perm(&out->msg_perm, &p->msg_perm)) | 601 | if (get_compat_ipc_perm(&out->msg_perm, &p->msg_perm)) |
602 | return -EFAULT; | 602 | return -EFAULT; |
603 | if (get_user(out->msg_qbytes, &p->msg_qbytes)) | 603 | if (get_user(out->msg_qbytes, &p->msg_qbytes)) |