qcow2: fix unaligned access
commit653df36bbe58e20258610bc74c5940c456b31084
authorAurelien Jarno <aurelien@aurel32.net>
Sat, 1 Jan 2011 20:50:34 +0000 (1 21:50 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 24 Jan 2011 10:08:50 +0000 (24 11:08 +0100)
treea936f70f12eb0b6b5c1c90a6dedea124b0c98509
parent0bfe006c5380c5f8a485a55ded3329fbbc224396
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