Skip to content

Commit de08481

Browse files
mstsirkindavem330
authored andcommitted
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 <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent bf2acc9 commit de08481

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/uapi/linux/vhost.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ struct vhost_iotlb_msg {
6868

6969
struct vhost_msg {
7070
int type;
71+
int padding0;
7172
union {
7273
struct vhost_iotlb_msg iotlb;
7374
__u8 padding[64];

0 commit comments

Comments
 (0)