diff mbox series

[1/5] block/amend: Clean up job on early failure

Message ID 20220304153729.711387-2-hreitz@redhat.com (mailing list archive)
State New, archived
Headers show
Series block/amend: Fix failures seen in iotest 296 | expand

Commit Message

Hanna Czenczek March 4, 2022, 3:37 p.m. UTC
Signed-off-by: Hanna Reitz <hreitz@redhat.com>
---
 block/amend.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/block/amend.c b/block/amend.c
index 329bca53dc..f465738665 100644
--- a/block/amend.c
+++ b/block/amend.c
@@ -134,6 +134,7 @@  void qmp_x_blockdev_amend(const char *job_id,
     s->force = has_force ? force : false;
 
     if (blockdev_amend_pre_run(s, errp)) {
+        job_early_fail(&s->common);
         return;
     }