Blame SOURCES/kvm-vhdx-Fix-vhdx_co_create-return-value.patch

1bdc94
From 8510a5a2d268749fd0a55072375ba8e4618717b0 Mon Sep 17 00:00:00 2001
1bdc94
From: Kevin Wolf <kwolf@redhat.com>
1bdc94
Date: Tue, 26 Jun 2018 09:48:38 +0200
1bdc94
Subject: [PATCH 69/89] vhdx: Fix vhdx_co_create() return value
1bdc94
1bdc94
RH-Author: Kevin Wolf <kwolf@redhat.com>
1bdc94
Message-id: <20180626094856.6924-56-kwolf@redhat.com>
1bdc94
Patchwork-id: 81127
1bdc94
O-Subject: [RHV-7.6 qemu-kvm-rhev PATCH v2 55/73] vhdx: Fix vhdx_co_create() return value
1bdc94
Bugzilla: 1513543
1bdc94
RH-Acked-by: Jeffrey Cody <jcody@redhat.com>
1bdc94
RH-Acked-by: Max Reitz <mreitz@redhat.com>
1bdc94
RH-Acked-by: Fam Zheng <famz@redhat.com>
1bdc94
1bdc94
.bdrv_co_create() is supposed to return 0 on success, but vhdx could
1bdc94
return a positive value instead. Fix this.
1bdc94
1bdc94
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
1bdc94
Reviewed-by: Max Reitz <mreitz@redhat.com>
1bdc94
Reviewed-by: Jeff Cody <jcody@redhat.com>
1bdc94
(cherry picked from commit 4a5f2779bad769184550869931937acd0707ec3b)
1bdc94
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
1bdc94
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
1bdc94
---
1bdc94
 block/vhdx.c | 2 +-
1bdc94
 1 file changed, 1 insertion(+), 1 deletion(-)
1bdc94
1bdc94
diff --git a/block/vhdx.c b/block/vhdx.c
1bdc94
index 6731298..31ac53b 100644
1bdc94
--- a/block/vhdx.c
1bdc94
+++ b/block/vhdx.c
1bdc94
@@ -1950,7 +1950,7 @@ static int coroutine_fn vhdx_co_create(BlockdevCreateOptions *opts,
1bdc94
         goto delete_and_exit;
1bdc94
     }
1bdc94
 
1bdc94
-
1bdc94
+    ret = 0;
1bdc94
 delete_and_exit:
1bdc94
     blk_unref(blk);
1bdc94
     bdrv_unref(bs);
1bdc94
-- 
1bdc94
1.8.3.1
1bdc94