KVM: only clear irq_source_id if irqchip is present
authorMarcelo Tosatti <mtosatti@redhat.com>
Thu, 29 Oct 2009 15:44:17 +0000 (13:44 -0200)
committerAvi Kivity <avi@redhat.com>
Thu, 3 Dec 2009 07:32:23 +0000 (09:32 +0200)
commite50212bb51356f0df48d6cce0aae5acf41df336d
tree095f3af5f642936ef5dae5415d8817e6337a179e
parent2204ae3c96e9a1fed50f7ee19ce092e69d7dfe82
KVM: only clear irq_source_id if irqchip is present

Otherwise kvm might attempt to dereference a NULL pointer.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
virt/kvm/irq_comm.c