diff options
author | Fam Zheng <famz@redhat.com> | 2016-01-26 11:58:52 +0800 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineering.com> | 2019-11-29 19:30:23 -0600 |
commit | d1e28a75d58a7be7d1a3e91a47b71dfa5ad29835 (patch) | |
tree | 65aa6a2ce51c1c3c76563926c9b183684df37b4a | |
parent | 160f7b1a41e344b16d5458d608ed90255a6c1feb (diff) | |
download | hqemu-d1e28a75d58a7be7d1a3e91a47b71dfa5ad29835.zip hqemu-d1e28a75d58a7be7d1a3e91a47b71dfa5ad29835.tar.gz |
iscsi: Assign bs to file in iscsi_co_get_block_status
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
Message-id: 1453780743-16806-6-git-send-email-famz@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
-rw-r--r-- | block/iscsi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/block/iscsi.c b/block/iscsi.c index e182557..9fe76f4 100644 --- a/block/iscsi.c +++ b/block/iscsi.c @@ -625,6 +625,9 @@ out: if (iTask.task != NULL) { scsi_free_scsi_task(iTask.task); } + if (ret > 0 && ret & BDRV_BLOCK_OFFSET_VALID) { + *file = bs; + } return ret; } |