From 24df38b00e23f76558ac12d7055c2df8d4b05150 Mon Sep 17 00:00:00 2001 From: Kevin Wolf Date: Mon, 26 Sep 2016 15:03:00 +0200 Subject: [PATCH] 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 Reviewed-by: Max Reitz --- blockdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2