summaryrefslogtreecommitdiffstats
path: root/drivers/virtio
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2014-12-11 15:54:07 +0200
committerMichael S. Tsirkin <mst@redhat.com>2014-12-11 20:04:38 +0200
commit3d2667826cbb5e2eb8d8c7ee92f74bcb00b36a2f (patch)
tree1494ba27477b1307d40e7d80ebf41161e43f5ed1 /drivers/virtio
parent30683a8cce8019aa4314c37e629da5c185017166 (diff)
downloadlinux-3d2667826cbb5e2eb8d8c7ee92f74bcb00b36a2f.tar.gz
linux-3d2667826cbb5e2eb8d8c7ee92f74bcb00b36a2f.tar.bz2
linux-3d2667826cbb5e2eb8d8c7ee92f74bcb00b36a2f.zip
virtio_config: fix virtio_cread_bytes
virtio_cread_bytes is implemented incorrectly in case length happens to be 2,4 or 8 bytes: transports and devices will assume it's an integer value that has to be converted to LE format. Let's just do multiple 1-byte reads: this also makes life easier for transports who only need to implement 1,2,4 and 8 byte reads. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/virtio')
0 files changed, 0 insertions, 0 deletions