diff options
author | 2022-10-14 15:55:11 +0800 | |
---|---|---|
committer | 2022-10-27 04:41:54 -0400 | |
commit | 5aa02366773376a1fd3a5c6a815e5f6e026ab391 (patch) | |
tree | 31bdbb0d36548f7fe84e6062f27c0e7de0f09a88 /scripts/generate_rust_analyzer.py | |
parent | KVM: x86: Mask off reserved bits in CPUID.8000001FH (diff) | |
download | linux-dev-5aa02366773376a1fd3a5c6a815e5f6e026ab391.tar.xz linux-dev-5aa02366773376a1fd3a5c6a815e5f6e026ab391.zip |
KVM: x86: Reduce refcount if single_open() fails in kvm_mmu_rmaps_stat_open()
Refcount is increased before calling single_open() in
kvm_mmu_rmaps_stat_open(), If single_open() fails, refcount should be
restored, otherwise the vm couldn't be destroyed.
Fixes: 3bcd0662d66fd ("KVM: X86: Introduce mmu_rmaps_stat per-vm debugfs file")
Signed-off-by: Hou Wenlong <houwenlong.hwl@antgroup.com>
Message-Id: <a75900413bb8b1e556be690e9588a0f92e946a30.1665733883.git.houwenlong.hwl@antgroup.com>
[Preserved return value of single_open. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions