]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 28 Jan 2010 23:02:50 +0000 (15:02 -0800)
commit454f8b167c06886ab7d469c889d9cca613398431
tree7f2217e999b2650a80145a1d5460c42c0baa32c1
parenteaccd490b0128d11ce2ea4d9d89e092661ae90b5
KVM: only clear irq_source_id if irqchip is present

commit e50212bb51356f0df48d6cce0aae5acf41df336d upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
virt/kvm/irq_comm.c