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>
This commit is contained in:
parent
49137bf684
commit
24df38b00e
@ -2614,7 +2614,7 @@ void qmp_blockdev_change_medium(bool has_device, const char *device,
|
|||||||
error_free(err);
|
error_free(err);
|
||||||
err = NULL;
|
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) {
|
if (err) {
|
||||||
error_propagate(errp, err);
|
error_propagate(errp, err);
|
||||||
goto fail;
|
goto fail;
|
||||||
|
Loading…
Reference in New Issue
Block a user