提交 87267753 编写于 作者: Z Zhi Yong Wu 提交者: Kevin Wolf

qcow2: fix endianness conversion

Signed-off-by: NZhi Yong Wu <wuzhy@linux.vnet.ibm.com>
Reviewed-by: NStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: NKevin Wolf <kwolf@redhat.com>
上级 833e4085
......@@ -367,7 +367,7 @@ static int alloc_refcount_block(BlockDriverState *bs,
}
for(i = 0; i < table_size; i++) {
cpu_to_be64s(&new_table[i]);
be64_to_cpus(&new_table[i]);
}
/* Hook up the new refcount table in the qcow2 header */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册