mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 06:31:49 +00:00
1a87228f5f
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 <david@gibson.dropbear.id.au> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> |
||
---|---|---|
.. | ||
config.c | ||
Kconfig | ||
Makefile | ||
virtio_balloon.c | ||
virtio_mmio.c | ||
virtio_pci.c | ||
virtio_ring.c | ||
virtio.c |