projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72952cc
)
vsock/virtio: add a missing __le annotation
author
Michael S. Tsirkin
<mst@redhat.com>
Tue, 6 Dec 2016 04:03:34 +0000
(06:03 +0200)
committer
Michael 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
patch
|
blob
|
history
diff --git
a/net/vmw_vsock/virtio_transport.c
b/net/vmw_vsock/virtio_transport.c
index
2e47f9f
..
6788264
100644
(file)
--- 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;
-
u
64 guest_cid;
+
__le
64 guest_cid;
vdev->config->get(vdev, offsetof(struct virtio_vsock_config, guest_cid),
&guest_cid, sizeof(guest_cid));