]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
KVM: release anon file in failure path of vm creation
authorLiu Shuo <shuo.a.liu@intel.com>
Tue, 12 Jul 2016 09:38:42 +0000 (17:38 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 14 Jul 2016 17:11:21 +0000 (19:11 +0200)
commit2be5b3f6dc84d30810cc0a94fa66205c27cf5f42
tree0b8eedc0b7829d198467533736fe99d644e436f9
parent2f1fe81123f59271bddda673b60116bde9660385
KVM: release anon file in failure path of vm creation

The failure of create debugfs of VM will return directly without release
the anon file. It will leak memory and file descriptors, even through
be not serious.

Signed-off-by: Liu Shuo <shuo.a.liu@intel.com>
Fixes: 536a6f88c49dd739961ffd53774775afed852c83
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virt/kvm/kvm_main.c