← Prev in month ← Prev in thread

[PATCH v3 1/7] Vhost-vsock device: Fixed endiannes issue.

From
Claudio Imbrenda <>
Date
2016-03-11T15:45:59+00:00
ID
Thread
[PATCH v3 1/7] Vhost-vsock device: Fixed endiannes issue.
From: Claudio Imbrenda <>

Added missing endianness initializations in the vhost-vsock device.

Signed-off-by: Claudio Imbrenda <>
---
 drivers/vhost/vsock.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/vhost/vsock.c b/drivers/vhost/vsock.c
index 2c5963c..9378f23 100644
--- a/drivers/vhost/vsock.c
+++ b/drivers/vhost/vsock.c
@@ -481,6 +481,8 @@ static int vhost_vsock_set_features(struct vhost_vsock *vsock, u64 features)
 		vq = &vsock->vqs[i];
 		mutex_lock(&vq->mutex);
 		vq->acked_features = features;
+		vq->is_le = virtio_legacy_is_little_endian();
+		vhost_init_is_le(vq);
 		mutex_unlock(&vq->mutex);
 	}
 	mutex_unlock(&vsock->dev.mutex);
-- 
1.9.1
← Prev in month ← Prev in thread