Skip to content
Commit 7964218c authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

Revert "KVM: release anon file in failure path of vm creation"



This reverts commit 77ecc085fed1af1000ca719522977b960aa6da52.

Al Viro colorfully says: "You should *NEVER* use sys_close() on failure
exit paths like that.  Moreover, this kvm_put_kvm() becomes a double-put,
since closing the damn file will drop that reference to kvm.  Please,
revert.  anon_inode_getfd() should be used only when there's no possible
failures past its call".

Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 2be5b3f6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment