pc: initialize ioapic before use.
authorIsaku Yamahata <yamahata@valinux.co.jp>
Fri, 14 May 2010 07:29:03 +0000 (16:29 +0900)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 15 May 2010 15:32:28 +0000 (15:32 +0000)
commit6393ba133213a1c50ea97302eeffba51fe03414f
tree427e7b17856b52360877125d0493cf7533b79f8d
parentd51a13f0fe52cb88c87a704931fe04ff1d8a63af
pc: initialize ioapic before use.

The changeset of 2c8d9340203c7f19265fd4cb2341f568217a3af6
prevents isa_irq_handler() from NULL refering of IsaIrqState::ioapic.
However it would be better to initialize the member before reference.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/pc.c