qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PULL 2/5] iscsi: fix -ENOSPC in iscsi_create()


From: Paolo Bonzini
Subject: [Qemu-devel] [PULL 2/5] iscsi: fix -ENOSPC in iscsi_create()
Date: Wed, 17 Jul 2013 17:05:21 +0200

From: Peter Lieven <address@hidden>

the -ENOPSC case did not work due to the missing goto.

Reported-by: Kevin Wolf <address@hidden>
Signed-off-by: Peter Lieven <address@hidden>
Cc: address@hidden
Signed-off-by: Paolo Bonzini <address@hidden>
---
 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;
-- 
1.8.1.4





reply via email to

[Prev in Thread] Current Thread [Next in Thread]