diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2018-04-27 18:02:05 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-05-01 20:05:13 +0200 |
commit | de08481a253ac658433a8304a303ce9f018d71e5 (patch) | |
tree | a4f4bffba27fc93bb3bbadc8dc2ebef69e0d03b4 /include | |
parent | tcp: fix TCP_REPAIR_QUEUE bound checking (diff) | |
download | linux-de08481a253ac658433a8304a303ce9f018d71e5.tar.xz linux-de08481a253ac658433a8304a303ce9f018d71e5.zip |
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.h | 1 |
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]; |