mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-18 06:15:12 +00:00
Drivers: hv: Explicitly size elements of protocol structures
Use explicitly sized types in data structures defining the host/guest protocol. Reported-by: Juan Sanchez-Agrelo <jagrelo@cisco.com> Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
b47a81dcc5
commit
1508d8111f
@ -487,7 +487,7 @@ struct vmtransfer_page_range {
|
|||||||
struct vmtransfer_page_packet_header {
|
struct vmtransfer_page_packet_header {
|
||||||
struct vmpacket_descriptor d;
|
struct vmpacket_descriptor d;
|
||||||
u16 xfer_pageset_id;
|
u16 xfer_pageset_id;
|
||||||
bool sender_owns_set;
|
u8 sender_owns_set;
|
||||||
u8 reserved;
|
u8 reserved;
|
||||||
u32 range_cnt;
|
u32 range_cnt;
|
||||||
struct vmtransfer_page_range ranges[1];
|
struct vmtransfer_page_range ranges[1];
|
||||||
@ -641,7 +641,7 @@ struct vmbus_channel_query_vmbus_version {
|
|||||||
/* VMBus Version Supported parameters */
|
/* VMBus Version Supported parameters */
|
||||||
struct vmbus_channel_version_supported {
|
struct vmbus_channel_version_supported {
|
||||||
struct vmbus_channel_message_header header;
|
struct vmbus_channel_message_header header;
|
||||||
bool version_supported;
|
u8 version_supported;
|
||||||
} __packed;
|
} __packed;
|
||||||
|
|
||||||
/* Offer Channel parameters */
|
/* Offer Channel parameters */
|
||||||
@ -650,7 +650,7 @@ struct vmbus_channel_offer_channel {
|
|||||||
struct vmbus_channel_offer offer;
|
struct vmbus_channel_offer offer;
|
||||||
u32 child_relid;
|
u32 child_relid;
|
||||||
u8 monitorid;
|
u8 monitorid;
|
||||||
bool monitor_allocated;
|
u8 monitor_allocated;
|
||||||
} __packed;
|
} __packed;
|
||||||
|
|
||||||
/* Rescind Offer parameters */
|
/* Rescind Offer parameters */
|
||||||
@ -786,7 +786,7 @@ struct vmbus_channel_initiate_contact {
|
|||||||
|
|
||||||
struct vmbus_channel_version_response {
|
struct vmbus_channel_version_response {
|
||||||
struct vmbus_channel_message_header header;
|
struct vmbus_channel_message_header header;
|
||||||
bool version_supported;
|
u8 version_supported;
|
||||||
} __packed;
|
} __packed;
|
||||||
|
|
||||||
enum vmbus_channel_state {
|
enum vmbus_channel_state {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user