summaryrefslogtreecommitdiffstats
path: root/net/vmw_vsock
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2016-12-06 06:03:34 +0200
committerMichael S. Tsirkin <mst@redhat.com>2016-12-15 06:59:18 +0200
commit6c7efafdd5c1639084dd08ace82567e19a4032be (patch)
tree163f2d15126710f935b31b3376b6f293c9139ea5 /net/vmw_vsock
parent72952cc0614b61650b2b13f57752a6dd82cbeae5 (diff)
downloadlinux-6c7efafdd5c1639084dd08ace82567e19a4032be.tar.bz2
vsock/virtio: add a missing __le annotation
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>
Diffstat (limited to 'net/vmw_vsock')
-rw-r--r--net/vmw_vsock/virtio_transport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/vmw_vsock/virtio_transport.c b/net/vmw_vsock/virtio_transport.c
index 2e47f9f06b96..6788264acc63 100644
--- a/net/vmw_vsock/virtio_transport.c
+++ b/net/vmw_vsock/virtio_transport.c
@@ -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));