]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/xen: Fix eventfd error handling in kvm_xen_eventfd_assign()
authorEiichi Tsukata <eiichi.tsukata@nutanix.com>
Fri, 28 Oct 2022 09:26:31 +0000 (09:26 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 28 Oct 2022 10:47:26 +0000 (06:47 -0400)
commit6a9d0f400ee4579175303bb65b0900448b163a11
treed2f9b7aba1303109482e7cad9a6b5c317d495894
parent36693a0bf44a0693be1cdac443c448a18175536a
KVM: x86/xen: Fix eventfd error handling in kvm_xen_eventfd_assign()

Should not call eventfd_ctx_put() in case of error.

Fixes: a58e700e6295 ("KVM: x86/xen: intercept EVTCHNOP_send from guests")
Reported-by: syzbot+6f0c896c5a9449a10ded@syzkaller.appspotmail.com
Signed-off-by: Eiichi Tsukata <eiichi.tsukata@nutanix.com>
Message-Id: <20221028092631.117438-1-eiichi.tsukata@nutanix.com>
[Introduce new goto target instead. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/xen.c