summaryrefslogtreecommitdiff
path: root/include/linux/vringh.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/vringh.h')
-rw-r--r--include/linux/vringh.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/vringh.h b/include/linux/vringh.h
index 3ed62efc2bc5..bc6c28d04263 100644
--- a/include/linux/vringh.h
+++ b/include/linux/vringh.h
@@ -228,7 +228,8 @@ static inline void vringh_notify(struct vringh *vrh)
static inline bool vringh_is_little_endian(const struct vringh *vrh)
{
- return vrh->little_endian;
+ return vrh->little_endian ||
+ virtio_legacy_is_little_endian();
}
static inline u16 vringh16_to_cpu(const struct vringh *vrh, __virtio16 val)