projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a53f01
)
iscsi: fix -ENOSPC in iscsi_create()
author
Peter Lieven
<pl@kamp.de>
Thu, 11 Jul 2013 12:16:24 +0000
(14:16 +0200)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Wed, 17 Jul 2013 15:00:28 +0000
(17:00 +0200)
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>
block/iscsi.c
patch
|
blob
|
history
diff --git
a/block/iscsi.c
b/block/iscsi.c
index
fa5252c
..
91b602c
100644
(file)
--- 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;