summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2018-04-27 19:02:05 +0300
committerDavid S. Miller <davem@davemloft.net>2018-05-01 14:05:13 -0400
commitde08481a253ac658433a8304a303ce9f018d71e5 (patch)
treea4f4bffba27fc93bb3bbadc8dc2ebef69e0d03b4 /include
parentbf2acc943a45d2b2e8a9f1a5ddff6b6e43cc69d9 (diff)
downloadlinux-de08481a253ac658433a8304a303ce9f018d71e5.tar.bz2
vhost: make msg padding explicit
There's a 32 bit hole just after type. It's best to give it a name, this way compiler is forced to initialize it with rest of the structure. Reported-by: Kevin Easton <kevin@guarana.org> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/uapi/linux/vhost.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/vhost.h b/include/uapi/linux/vhost.h
index c51f8e5cc608..5a8ad064445b 100644
--- a/include/uapi/linux/vhost.h
+++ b/include/uapi/linux/vhost.h
@@ -68,6 +68,7 @@ struct vhost_iotlb_msg {
struct vhost_msg {
int type;
+ int padding0;
union {
struct vhost_iotlb_msg iotlb;
__u8 padding[64];