From: Andrew Morton Cc: Davide Libenzi Cc: Michael Kerrisk Cc: Ulrich Drepper Signed-off-by: Andrew Morton --- virt/kvm/kvm_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -puN virt/kvm/kvm_main.c~flag-parameters-anon_inode_getfd-extension-fix virt/kvm/kvm_main.c --- a/virt/kvm/kvm_main.c~flag-parameters-anon_inode_getfd-extension-fix +++ a/virt/kvm/kvm_main.c @@ -863,7 +863,7 @@ static const struct file_operations kvm_ */ static int create_vcpu_fd(struct kvm_vcpu *vcpu) { - int fd = anon_inode_getfd("kvm-vcpu", &kvm_vcpu_fops, vcpu); + int fd = anon_inode_getfd("kvm-vcpu", &kvm_vcpu_fops, vcpu, 0); if (fd < 0) kvm_put_kvm(vcpu->kvm); return fd; @@ -1196,7 +1196,7 @@ static int kvm_dev_ioctl_create_vm(void) kvm = kvm_create_vm(); if (IS_ERR(kvm)) return PTR_ERR(kvm); - fd = anon_inode_getfd("kvm-vm", &kvm_vm_fops, kvm); + fd = anon_inode_getfd("kvm-vm", &kvm_vm_fops, kvm, 0); if (fd < 0) kvm_put_kvm(kvm); _