projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02650ac
)
iscsi: Assign bs to file in iscsi_co_get_block_status
author
Fam Zheng
<famz@redhat.com>
Tue, 26 Jan 2016 03:58:52 +0000
(11:58 +0800)
committer
Max Reitz
<mreitz@redhat.com>
Tue, 2 Feb 2016 16:50:47 +0000
(17:50 +0100)
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>
block/iscsi.c
patch
|
blob
|
history
diff --git
a/block/iscsi.c
b/block/iscsi.c
index e182557cfce012580160ff33e31369c6c198bbae..9fe76f48ec5e3a6cc24b1c21e1505f4c22f11915 100644
(file)
--- 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;
}