diff options
author | 2008-04-19 20:33:56 +0100 | |
---|---|---|
committer | 2008-04-27 18:21:46 +0300 | |
commit | 66c0b394f08fd89236515c1c84485ea712a157be (patch) | |
tree | bb6e9e5c0d6297f93617d222ea11f3c134ccab99 /security/selinux/xfrm.c | |
parent | KVM: MMU: kvm_pv_mmu_op should not take mmap_sem (diff) | |
download | linux-rng-66c0b394f08fd89236515c1c84485ea712a157be.tar.xz linux-rng-66c0b394f08fd89236515c1c84485ea712a157be.zip |
KVM: kill file->f_count abuse in kvm
Use kvm own refcounting instead of playing with ->filp->f_count.
That will allow to get rid of a lot of crap in anon_inode_getfd() and
kill a race in kvm_dev_ioctl_create_vm() (file might have been closed
immediately by another thread, so ->filp might point to already freed
struct file when we get around to setting it).
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'security/selinux/xfrm.c')
0 files changed, 0 insertions, 0 deletions