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>
This commit is contained in:
Michael S. Tsirkin 2018-04-27 19:02:05 +03:00 committed by David S. Miller
parent bf2acc943a
commit de08481a25

View File

@ -68,6 +68,7 @@ struct vhost_iotlb_msg {
struct vhost_msg {
int type;
int padding0;
union {
struct vhost_iotlb_msg iotlb;
__u8 padding[64];