From: K. Y. Srinivasan Date: Wed, 3 Sep 2014 02:21:47 +0000 (-0700) Subject: Drivers: hv: util: Properly pack the data for file copy functionality X-Git-Tag: v3.18-rc1~126^2~20 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=bc5a5b0;p=karo-tx-linux.git 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 Signed-off-by: K. Y. Srinivasan Reported-by: Cc: Acked-by: Jason Wang Signed-off-by: Greg Kroah-Hartman --- diff --git a/include/uapi/linux/hyperv.h b/include/uapi/linux/hyperv.h index 78e4a86030dd..0a8e6badb29b 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.