]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: VMX: Don't register posted interrupt wakeup handler if alloc_kvm_area() fails
authorHou Wenlong <houwenlong.hwl@antgroup.com>
Tue, 13 Jan 2026 11:56:50 +0000 (19:56 +0800)
committerSean Christopherson <seanjc@google.com>
Wed, 14 Jan 2026 21:21:19 +0000 (13:21 -0800)
commit6c8512a5b7f44caf981cee4ffa2a4ac73e627732
tree211b2b6bad186d5c89e77cff847832f9eb1e9a70
parentff8071eb3aa54e96336ecce7c88b25f9a4d62383
KVM: VMX: Don't register posted interrupt wakeup handler if alloc_kvm_area() fails

Unregistering the posted interrupt wakeup handler only happens during
hardware unsetup. Therefore, if alloc_kvm_area() fails and continue to
register the posted interrupt wakeup handler, this will leave the global
posted interrupt wakeup handler pointer in an incorrect state. Although
it should not be an issue, it's still better to change it.

Signed-off-by: Hou Wenlong <houwenlong.hwl@antgroup.com>
Fixes: ec5a4919fa7b ("KVM: VMX: Unregister posted interrupt wakeup handler on hardware unsetup")
Link: https://patch.msgid.link/0ac6908b608cf80eab7437004334fedd0f5f5317.1768304590.git.houwenlong.hwl@antgroup.com
[sean: use a goto]
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/vmx/vmx.c