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)
commit7353633814f6e5b4899fb9ee1483709d6bb0e1cd
treed2f9b7aba1303109482e7cad9a6b5c317d495894
parent696db303e54f7352623d9f640e6c51d8fa9d5588
KVM: x86/xen: Fix eventfd error handling in kvm_xen_eventfd_assign()

Should not call eventfd_ctx_put() in case of error.

Fixes: 2fd6df2f2b47 ("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