vsock/virtio: add a missing __le annotation
authorMichael S. Tsirkin <mst@redhat.com>
Tue, 6 Dec 2016 04:03:34 +0000 (06:03 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 15 Dec 2016 04:59:18 +0000 (06:59 +0200)
guest cid is read from config space, therefore it's in little endian
format and is treated as such, annotate it accordingly.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
net/vmw_vsock/virtio_transport.c

index 2e47f9f06b962b2b80f03f67614c7dbbb13ee34a..6788264acc632de6a309d5b895e0b78814a55e9a 100644 (file)
@@ -379,7 +379,7 @@ static void virtio_vsock_reset_sock(struct sock *sk)
 static void virtio_vsock_update_guest_cid(struct virtio_vsock *vsock)
 {
        struct virtio_device *vdev = vsock->vdev;
-       u64 guest_cid;
+       __le64 guest_cid;
 
        vdev->config->get(vdev, offsetof(struct virtio_vsock_config, guest_cid),
                          &guest_cid, sizeof(guest_cid));