qcow2: fix unaligned access
authorAurelien Jarno <aurelien@aurel32.net>
Sat, 1 Jan 2011 20:50:34 +0000 (21:50 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 24 Jan 2011 10:08:50 +0000 (11:08 +0100)
commitc9b9ed0fdbf90a7a7e3c111c6a99b5f42f78a6a7
treea936f70f12eb0b6b5c1c90a6dedea124b0c98509
parentd2829d69d6b052efbea3667f007c286f690307d3
qcow2: fix unaligned access

cpu_to_be64w() is called with an obviously non-aligned pointer. Use
cpu_to_be64wu() instead. It fixes unaligned accesses errors on IA64
hosts.

Cc: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2-cluster.c