mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 22:51:35 +00:00
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:
parent
bf2acc943a
commit
de08481a25
@ -68,6 +68,7 @@ struct vhost_iotlb_msg {
|
||||
|
||||
struct vhost_msg {
|
||||
int type;
|
||||
int padding0;
|
||||
union {
|
||||
struct vhost_iotlb_msg iotlb;
|
||||
__u8 padding[64];
|
||||
|
Loading…
Reference in New Issue
Block a user