]> git.proxmox.com Git - mirror_qemu.git/commitdiff
block: Fix error path in qmp_blockdev_change_medium()
authorKevin Wolf <kwolf@redhat.com>
Mon, 26 Sep 2016 13:03:00 +0000 (15:03 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 29 Sep 2016 12:13:38 +0000 (14:13 +0200)
Commit 00949bab incorrectly changed one instance of &err into errp while
touching the line. Change it back.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
blockdev.c

index 29c6561fd89dc076fcd412ab987904c37b72208c..62d0dd016f1ff53a3ccdc91d6fb18b26abcbfb96 100644 (file)
@@ -2614,7 +2614,7 @@ void qmp_blockdev_change_medium(bool has_device, const char *device,
     error_free(err);
     err = NULL;
 
-    qmp_x_blockdev_remove_medium(has_device, device, has_id, id, errp);
+    qmp_x_blockdev_remove_medium(has_device, device, has_id, id, &err);
     if (err) {
         error_propagate(errp, err);
         goto fail;