summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2016-09-26 15:03:00 +0200
committerKevin Wolf <kwolf@redhat.com>2016-09-29 14:13:38 +0200
commit24df38b00e23f76558ac12d7055c2df8d4b05150 (patch)
tree0e9648c567e7f616439a8146fe3e671dc8f6f828
parent49137bf6845eaecad51a047fc06dd11c56118460 (diff)
downloadfocaccia-qemu-24df38b00e23f76558ac12d7055c2df8d4b05150.tar.gz
focaccia-qemu-24df38b00e23f76558ac12d7055c2df8d4b05150.zip
block: Fix error path in qmp_blockdev_change_medium()
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>
Diffstat (limited to '')
-rw-r--r--blockdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/blockdev.c b/blockdev.c
index 29c6561fd8..62d0dd016f 100644
--- a/blockdev.c
+++ b/blockdev.c
@@ -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;