dm: fix assertion in pci_irq_reserve

atkbdc_init will call pci_irq_reserve to reserve irq 1 & 12, which need
pci_irq_init be called first.

Tracked-On: #1402
Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com>
This commit is contained in:
Jason Chen CJ 2018-10-08 13:09:20 +08:00 committed by wenlingz
parent e0728f4b60
commit 6793eb0604
1 changed files with 1 additions and 1 deletions

View File

@ -499,12 +499,12 @@ vm_reset_vdevs(struct vmctx *ctx)
pci_irq_deinit(ctx);
ioapic_deinit();
pci_irq_init(ctx);
atkbdc_init(ctx);
vrtc_init(ctx);
vpit_init(ctx);
ioapic_init(ctx);
pci_irq_init(ctx);
init_pci(ctx);
if (acpi) {