Commit bc5a5b02 authored by K. Y. Srinivasan's avatar K. Y. Srinivasan Committed by Greg Kroah-Hartman

Drivers: hv: util: Properly pack the data for file copy functionality

Properly pack the data for file copy functionality. Patch based on
investigation done by Matej Muzila <mmuzila@redhat.com>
Signed-off-by: default avatarK. Y. Srinivasan <kys@microsoft.com>
Reported-by: <qge@redhat.com>
Cc: <stable@vger.kernel.org>
Acked-by: default avatarJason Wang <jasowang@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2115b561
...@@ -137,7 +137,7 @@ struct hv_do_fcopy { ...@@ -137,7 +137,7 @@ struct hv_do_fcopy {
__u64 offset; __u64 offset;
__u32 size; __u32 size;
__u8 data[DATA_FRAGMENT]; __u8 data[DATA_FRAGMENT];
}; } __attribute__((packed));
/* /*
* An implementation of HyperV key value pair (KVP) functionality for Linux. * An implementation of HyperV key value pair (KVP) functionality for Linux.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment