diff options
author | Fam Zheng <famz@redhat.com> | 2014-04-10 09:33:55 +0800 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2014-04-11 13:59:49 +0200 |
commit | cd82b6fb4daf87f17742f7971ba6cb90d23e6703 (patch) | |
tree | 1559939383b34ca12a9daa10d6b19c173ae70437 /block | |
parent | 715c3f60efa9801a777a71cd06eaf8efa7eaa2a8 (diff) | |
download | qemu-cd82b6fb4daf87f17742f7971ba6cb90d23e6703.tar.gz qemu-cd82b6fb4daf87f17742f7971ba6cb90d23e6703.tar.bz2 qemu-cd82b6fb4daf87f17742f7971ba6cb90d23e6703.zip |
iscsi: Remember to set ret for iscsi_open in error case
Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@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 64a509f8f4..f425573df8 100644 --- a/block/iscsi.c +++ b/block/iscsi.c @@ -1233,6 +1233,7 @@ static int iscsi_open(BlockDriverState *bs, QDict *options, int flags, iscsi_readcapacity_sync(iscsilun, &local_err); if (local_err != NULL) { error_propagate(errp, local_err); + ret = -EINVAL; goto out; } bs->total_sectors = sector_lun2qemu(iscsilun->num_blocks, iscsilun); |