]> Git Repo - qemu.git/blobdiff - device-hotplug.c
linux-user/main.c: Mark end_exclusive() as possibly unused
[qemu.git] / device-hotplug.c
index e6a1ffb9fabe3748909c3618e955d1ad57c91071..9e38cc4808f75c965b8284776bf138095f9a1889 100644 (file)
@@ -24,6 +24,7 @@
 
 #include "hw/hw.h"
 #include "hw/boards.h"
+#include "sysemu/block-backend.h"
 #include "sysemu/blockdev.h"
 #include "qemu/config-file.h"
 #include "sysemu/sysemu.h"
@@ -76,6 +77,6 @@ void drive_hot_add(Monitor *mon, const QDict *qdict)
 
 err:
     if (dinfo) {
-        drive_del(dinfo);
+        blk_unref(blk_by_legacy_dinfo(dinfo));
     }
 }
This page took 0.022327 seconds and 4 git commands to generate.