From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48621) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxFot-0004m8-5J for qemu-devel@nongnu.org; Thu, 11 Jul 2013 08:18:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UxFop-0005TA-S2 for qemu-devel@nongnu.org; Thu, 11 Jul 2013 08:17:59 -0400 Received: from mx.ipv6.kamp.de ([2a02:248:0:51::16]:39886 helo=mx01.kamp.de) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1UxFop-0005Sr-Fm for qemu-devel@nongnu.org; Thu, 11 Jul 2013 08:17:55 -0400 From: Peter Lieven Date: Thu, 11 Jul 2013 14:16:24 +0200 Message-Id: <1373544987-20613-8-git-send-email-pl@kamp.de> In-Reply-To: <1373544987-20613-1-git-send-email-pl@kamp.de> References: <1373544987-20613-1-git-send-email-pl@kamp.de> Subject: [Qemu-devel] [PATCHv3 07/10] iscsi: fix -ENOSPC in iscsi_create() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, pbonzini@redhat.com, Peter Lieven , ronniesahlberg@gmail.com, stefanha@redhat.com the -ENOPSC case did not work due to the missing goto. Reported-by: Kevin Wolf Signed-off-by: Peter Lieven --- 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