mirror of
https://git.proxmox.com/git/qemu
synced 2025-08-16 12:02:30 +00:00
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>
This commit is contained in:
parent
0a53f01074
commit
d3bda7bc16
@ -1272,6 +1272,7 @@ static int iscsi_create(const char *filename, QEMUOptionParameter *options)
|
|||||||
}
|
}
|
||||||
if (bs.total_sectors < total_size) {
|
if (bs.total_sectors < total_size) {
|
||||||
ret = -ENOSPC;
|
ret = -ENOSPC;
|
||||||
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = 0;
|
ret = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user