Properly pack the data for file copy functionality. Patch based on investigation done by Matej Muzila <mmuz...@redhat.com>
Signed-off-by: K. Y. Srinivasan <k...@microsoft.com> Reported-by: q...@redhat.com Cc: <sta...@vger.kernel.org> --- include/uapi/linux/hyperv.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/uapi/linux/hyperv.h b/include/uapi/linux/hyperv.h index 78e4a86..0a8e6ba 100644 --- a/include/uapi/linux/hyperv.h +++ b/include/uapi/linux/hyperv.h @@ -137,7 +137,7 @@ struct hv_do_fcopy { __u64 offset; __u32 size; __u8 data[DATA_FRAGMENT]; -}; +} __attribute__((packed)); /* * An implementation of HyperV key value pair (KVP) functionality for Linux. -- 1.7.4.1 _______________________________________________ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel