From: Michael S. Tsirkin Date: Fri, 27 Apr 2018 16:02:05 +0000 (+0300) Subject: vhost: make msg padding explicit X-Git-Tag: v4.17-rc4~23^2~24 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=de08481a253ac658433a8304a303ce9f018d71e5;p=linux-block.git 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 Signed-off-by: Michael S. Tsirkin Signed-off-by: David S. Miller --- 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];