]> Git Repo - qemu.git/commitdiff
iscsi: Assign bs to file in iscsi_co_get_block_status
authorFam Zheng <[email protected]>
Tue, 26 Jan 2016 03:58:52 +0000 (11:58 +0800)
committerMax Reitz <[email protected]>
Tue, 2 Feb 2016 16:50:47 +0000 (17:50 +0100)
Reviewed-by: Eric Blake <[email protected]>
Reviewed-by: Stefan Hajnoczi <[email protected]>
Signed-off-by: Fam Zheng <[email protected]>
Message-id: 1453780743[email protected]
Signed-off-by: Max Reitz <[email protected]>
block/iscsi.c

index e182557cfce012580160ff33e31369c6c198bbae..9fe76f48ec5e3a6cc24b1c21e1505f4c22f11915 100644 (file)
@@ -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;
 }
 
This page took 0.029249 seconds and 4 git commands to generate.