the -ENOPSC case did not work due to the missing goto. Reported-by: Kevin Wolf <kw...@redhat.com> Signed-off-by: Peter Lieven <p...@kamp.de> --- block/iscsi.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/block/iscsi.c b/block/iscsi.c index 64554bc..6cdd182 100644 --- a/block/iscsi.c +++ b/block/iscsi.c @@ -1432,6 +1432,7 @@ static int iscsi_create(const char *filename, QEMUOptionParameter *options) } if (bs.total_sectors < total_size) { ret = -ENOSPC; + goto out; } ret = 0; -- 1.7.9.5