projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.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
|
blame
|
history
diff --git
a/net/vmw_vsock/virtio_transport.c
b/net/vmw_vsock/virtio_transport.c
index 2e47f9f06b962b2b80f03f67614c7dbbb13ee34a..6788264acc632de6a309d5b895e0b78814a55e9a 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));