From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:44637) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SfWet-0000DE-Hd for qemu-devel@nongnu.org; Fri, 15 Jun 2012 09:33:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SfWep-0004dW-3G for qemu-devel@nongnu.org; Fri, 15 Jun 2012 09:33:51 -0400 Received: from mx1.redhat.com ([209.132.183.28]:10987) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SfWeo-0004dC-Rm for qemu-devel@nongnu.org; Fri, 15 Jun 2012 09:33:47 -0400 From: Kevin Wolf Date: Fri, 15 Jun 2012 15:33:02 +0200 Message-Id: <1339767219-24297-3-git-send-email-kwolf@redhat.com> In-Reply-To: <1339767219-24297-1-git-send-email-kwolf@redhat.com> References: <1339767219-24297-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PATCH 02/39] qcow2: fix endianness conversion List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: anthony@codemonkey.ws Cc: kwolf@redhat.com, qemu-devel@nongnu.org From: Zhi Yong Wu Signed-off-by: Zhi Yong Wu Reviewed-by: Stefan Hajnoczi Signed-off-by: Kevin Wolf --- block/qcow2-refcount.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/block/qcow2-refcount.c b/block/qcow2-refcount.c index 812c93c..443c021 100644 --- a/block/qcow2-refcount.c +++ b/block/qcow2-refcount.c @@ -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 */ -- 1.7.6.5