diff options
-rw-r--r-- | hw/ide/piix.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/ide/piix.c b/hw/ide/piix.c index 0a4cbcbcbb..6d76ce980b 100644 --- a/hw/ide/piix.c +++ b/hw/ide/piix.c @@ -189,6 +189,7 @@ int pci_piix3_xen_ide_unplug(DeviceState *dev) idedev = pci_ide->bus[di->bus].slave; } idedev->conf.blk = NULL; + monitor_remove_blk(blk); blk_unref(blk); } } |