diff options
author | Peter Lieven <pl@kamp.de> | 2013-07-11 14:16:24 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2013-07-17 17:00:28 +0200 |
commit | d3bda7bc166f40326ba646ee145630bb1b59da96 (patch) | |
tree | 42751c171441534b0da01b3a473b9c56da8b2885 /block | |
parent | 0a53f010745635c39a83756a948df60a84e88fe5 (diff) |
iscsi: fix -ENOSPC in iscsi_create()
the -ENOPSC case did not work due to the missing goto.
Reported-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Peter Lieven <pl@kamp.de>
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'block')
-rw-r--r-- | block/iscsi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/block/iscsi.c b/block/iscsi.c index fa5252cc40..91b602c538 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; |