]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit31ae4e7f520bb902324ca51d1dff10c4eaaa5025
tree2dad8922ee99ccba6fe516639431ecd15575d533
parentcaf78b1841309f1869464be9985c3153e56c8cfe
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: d593b41a21b9 ("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