From: Michael S. Tsirkin Date: Thu, 11 Dec 2014 13:54:07 +0000 (+0200) Subject: virtio_config: fix virtio_cread_bytes X-Git-Tag: omap-for-v3.19/fixes-rc1~32^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d2667826cbb5e2eb8d8c7ee92f74bcb00b36a2f;p=pandora-kernel.git 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 --- Reading git-diff-tree failed