commit | 4efd805fca5590af181f89ad122b8695c63b5f2c | [log] [tgz] |
---|---|---|
author | Radim Krčmář <rkrcmar@redhat.com> | Fri Feb 12 15:00:15 2016 +0100 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Tue Feb 16 18:48:36 2016 +0100 |
tree | fb46888644286c0394f2dd04b1765698df7b032a | |
parent | 78db6a5037965429c04d708281f35a6e5562d31b [diff] |
KVM: x86: fix *NULL on invalid low-prio irq Smatch noticed a NULL dereference in kvm_intr_is_single_vcpu_fast that happens if VM already warned about invalid lowest-priority interrupt. Create a function for common code while fixing it. Fixes: 6228a0da8057 ("KVM: x86: Add lowest-priority support for vt-d posted-interrupts") Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Radim Krčmář <rkrcmar@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>