goldfish/mmc: Properly restore IRQ on reload. Change-Id: I667c330bb0d38e5ec3b9077e10b17cc010207b30
diff --git a/hw/android/goldfish/mmc.c b/hw/android/goldfish/mmc.c index fbbeed6..aece344 100644 --- a/hw/android/goldfish/mmc.c +++ b/hw/android/goldfish/mmc.c
@@ -158,7 +158,11 @@ // Unsupported version! return -1; } - return qemu_get_struct(f, goldfish_mmc_fields, s); + if (qemu_get_struct(f, goldfish_mmc_fields, s) < 0) { + return -1; + } + goldfish_device_set_irq(&s->dev, 0, (s->int_status & s->int_enable)); + return 0; } struct mmc_opcode {