Skip to content

Commit 4a5f277

Browse files
committed
vhdx: Fix vhdx_co_create() return value
.bdrv_co_create() is supposed to return 0 on success, but vhdx could return a positive value instead. Fix this. Signed-off-by: Kevin Wolf <[email protected]> Reviewed-by: Max Reitz <[email protected]> Reviewed-by: Jeff Cody <[email protected]>
1 parent 53618dd commit 4a5f277

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: block/vhdx.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1951,7 +1951,7 @@ static int coroutine_fn vhdx_co_create(BlockdevCreateOptions *opts,
19511951
goto delete_and_exit;
19521952
}
19531953

1954-
1954+
ret = 0;
19551955
delete_and_exit:
19561956
blk_unref(blk);
19571957
bdrv_unref(bs);

0 commit comments

Comments
 (0)