Commit 6c8512a
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: ec5a491 ("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>1 parent ff8071e commit 6c8512a
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8708 | 8708 | | |
8709 | 8709 | | |
8710 | 8710 | | |
8711 | | - | |
8712 | | - | |
| 8711 | + | |
| 8712 | + | |
8713 | 8713 | | |
8714 | 8714 | | |
8715 | 8715 | | |
| |||
8736 | 8736 | | |
8737 | 8737 | | |
8738 | 8738 | | |
| 8739 | + | |
| 8740 | + | |
| 8741 | + | |
| 8742 | + | |
| 8743 | + | |
8739 | 8744 | | |
8740 | 8745 | | |
8741 | 8746 | | |
| |||
0 commit comments