Messages in this thread | | | Date | Mon, 17 Oct 2022 14:05:28 -0400 | From | Peter Xu <> | Subject | Re: [PATCH v2 1/2] KVM: x86: Reduce refcount if single_open() fails in kvm_mmu_rmaps_stat_open() |
| |
On Mon, Oct 17, 2022 at 11:06:09AM +0800, Hou Wenlong wrote: > 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>
Reviewed-by: Peter Xu <peterx@redhat.com>
Thanks,
-- Peter Xu
| |