From: David Gibson Date: Thu, 12 Apr 2012 05:36:34 +0000 (+1000) Subject: virtio_balloon: Fix endian bug X-Git-Tag: v3.4-rc4~38^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a87228f5f1d316002c7c161316f5524592be766;p=pandora-kernel.git virtio_balloon: Fix endian bug Although virtio config space fields are usually in guest-native endian, the spec for the virtio balloon device explicitly states that both fields in its config space are little-endian. However, the current virtio_balloon driver does not have a suitable endian swap for the 'num_pages' field, although it does have one for the 'actual' field. This patch corrects the bug, adding sparse annotation while we're at it. Signed-off-by: David Gibson Signed-off-by: Michael S. Tsirkin --- Reading git-diff-tree failed