qemu-e2k/hw/intc
Paolo Bonzini 927411fa42 apic: do not dereference pointer before it is checked for NULL
Right now you only get to apic_init_reset if you have an APIC
(do_cpu_init is reached only if CPU_INTERRUPT_INIT is set and
that only happens in hw/intc/apic.c).  However, this is wrong
because for example a port 92 or keyboard controller reset is
really an INIT, and that can happen also with no APIC.  So
keep the check and fix the error that Coverity reported.

Reported-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2015-01-26 12:27:05 +01:00
..
allwinner-a10-pic.c
apic_common.c apic: do not dereference pointer before it is checked for NULL 2015-01-26 12:27:05 +01:00
apic.c apic: fix incorrect handling of ExtINT interrupts wrt processor priority 2014-11-24 14:37:45 +01:00
arm_gic_common.c
arm_gic_kvm.c arm_gic_kvm: Tell kernel about number of IRQs 2014-12-11 12:07:53 +00:00
arm_gic.c arm_gic: remove unused parameter. 2014-10-24 12:19:11 +01:00
armv7m_nvic.c vmstate: accept QEMUTimer in VMSTATE_TIMER*, add VMSTATE_TIMER_PTR* 2015-01-26 12:22:44 +01:00
etraxfs_pic.c
exynos4210_combiner.c
exynos4210_gic.c
gic_internal.h arm_gic: remove unused parameter. 2014-10-24 12:19:11 +01:00
grlib_irqmp.c
heathrow_pic.c
i8259_common.c
i8259.c
imx_avic.c
ioapic_common.c
ioapic.c
lm32_pic.c
Makefile.objs
omap_intc.c
openpic_kvm.c KVM_CAP_IRQFD and KVM_CAP_IRQFD_RESAMPLE checks 2014-12-15 12:21:01 +01:00
openpic.c
pl190.c
puv3_intc.c
realview_gic.c
s390_flic_kvm.c
s390_flic.c
sh_intc.c
slavio_intctl.c
xics_kvm.c KVM_CAP_IRQFD and KVM_CAP_IRQFD_RESAMPLE checks 2014-12-15 12:21:01 +01:00
xics.c
xilinx_intc.c