virtio_balloon: fix up endian-ness for free cmd id
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 27 Jul 2020 16:01:27 +0000 (12:01 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 29 Jul 2020 17:24:30 +0000 (13:24 -0400)
commit168c358af2f8c5a37f8b5f877ba2cc93995606ee
tree2dad8922ee99ccba6fe516639431ecd15575d533
parentca72cc348355fbc969f5fa00fa94d584920d403b
virtio_balloon: fix up endian-ness for free cmd id

free cmd id is read using virtio endian, spec says all fields
in balloon are LE. Fix it up.

Fixes: 86a559787e6f ("virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_HINT")
Cc: stable@vger.kernel.org
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Wei Wang <wei.w.wang@intel.com>
Acked-by: David Hildenbrand <david@redhat.com>
drivers/virtio/virtio_balloon.c