diff options
Diffstat (limited to 'include/linux/virtio_config.h')
-rw-r--r-- | include/linux/virtio_config.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/virtio_config.h b/include/linux/virtio_config.h index 7979f850e7ac..a61cd37f088c 100644 --- a/include/linux/virtio_config.h +++ b/include/linux/virtio_config.h | |||
@@ -305,7 +305,10 @@ static inline void virtio_cread_bytes(struct virtio_device *vdev, | |||
305 | unsigned int offset, | 305 | unsigned int offset, |
306 | void *buf, size_t len) | 306 | void *buf, size_t len) |
307 | { | 307 | { |
308 | vdev->config->get(vdev, offset, buf, len); | 308 | int i; |
309 | |||
310 | for (i = 0; i < len; i++) | ||
311 | vdev->config->get(vdev, offset + i, buf + i, 1); | ||
309 | } | 312 | } |
310 | 313 | ||
311 | static inline void virtio_cwrite8(struct virtio_device *vdev, | 314 | static inline void virtio_cwrite8(struct virtio_device *vdev, |