提交 de08481a 编写于 作者: M Michael S. Tsirkin 提交者: David S. Miller

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: NKevin Easton <kevin@guarana.org>
Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 bf2acc94
...@@ -68,6 +68,7 @@ struct vhost_iotlb_msg { ...@@ -68,6 +68,7 @@ struct vhost_iotlb_msg {
struct vhost_msg { struct vhost_msg {
int type; int type;
int padding0;
union { union {
struct vhost_iotlb_msg iotlb; struct vhost_iotlb_msg iotlb;
__u8 padding[64]; __u8 padding[64];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册