Commit 24df38b0 authored by Kevin Wolf's avatar Kevin Wolf
Browse files

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: default avatarKevin Wolf <kwolf@redhat.com>
Reviewed-by: default avatarMax Reitz <mreitz@redhat.com>
parent 49137bf6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;