block: Fix error path in qmp_blockdev_change_medium()
PATCH 1/1 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 <[email protected]>
--- blockdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
blockdev.c +1 -1
@@ -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;
Signature · 1 line
1.8.3.1
Quoted 7 lines · Kevin Wolf
Commit
00949babincorrectly changed one instance of &err into errp while touching the line. Change it back.Signed-off-by Kevin Wolf <[email protected]>--- blockdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by Max Reitz <[email protected]>