KVM: explain missing kvm_put_kvm in case of failure
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 27 Jun 2017 13:45:09 +0000 (15:45 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 27 Jun 2017 13:45:09 +0000 (15:45 +0200)
commit525df86145bf731af522ba9b3982c5b48078b81a
tree76d7f38890872d6e6b4a3c7ae3dc4b16165edfb5
parent039c5d1b2c5f249f5a291215eb5f0eb0afd54f81
KVM: explain missing kvm_put_kvm in case of failure

The call to kvm_put_kvm was removed from error handling in commit
506cfba9e726 ("KVM: don't use anon_inode_getfd() before possible
failures"), but it is _not_ a memory leak.  Reuse Al's explanation
to avoid that someone else makes the same mistake.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virt/kvm/kvm_main.c