From d3bda7bc166f40326ba646ee145630bb1b59da96 Mon Sep 17 00:00:00 2001 From: Peter Lieven Date: Thu, 11 Jul 2013 14:16:24 +0200 Subject: [PATCH] iscsi: fix -ENOSPC in iscsi_create() the -ENOPSC case did not work due to the missing goto. Reported-by: Kevin Wolf Signed-off-by: Peter Lieven Cc: qemu-stable@nongnu.org Signed-off-by: Paolo Bonzini --- block/iscsi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/block/iscsi.c b/block/iscsi.c index fa5252c..91b602c 100644 --- a/block/iscsi.c +++ b/block/iscsi.c @@ -1272,6 +1272,7 @@ static int iscsi_create(const char *filename, QEMUOptionParameter *options) } if (bs.total_sectors < total_size) { ret = -ENOSPC; + goto out; } ret = 0; -- 2.7.4