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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Aug 2020 07:58:37 +0000 (09:58 +0200)
commit82742151b6df8ecd15cdabec74364f97fe02b51d
tree06c97d420f26f4d2754833b0972123ed961812d7
parentfa3c45b30f52594557509e731717c0c07baa252f
virtio_balloon: fix up endian-ness for free cmd id

commit 168c358af2f8c5a37f8b5f877ba2cc93995606ee upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/virtio/virtio_balloon.c