]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Drivers: hv: util: Properly pack the data for file copy functionality
authorK. Y. Srinivasan <kys@microsoft.com>
Wed, 3 Sep 2014 02:21:47 +0000 (19:21 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Sep 2014 06:31:21 +0000 (23:31 -0700)
Properly pack the data for file copy functionality. Patch based on
investigation done by Matej Muzila <mmuzila@redhat.com>

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Reported-by: <qge@redhat.com>
Cc: <stable@vger.kernel.org>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/uapi/linux/hyperv.h

index 78e4a86030dd2d295a1abba8ad6249668fdf7fef..0a8e6badb29bcf05f9a1c968a9c2e2c2d271df1e 100644 (file)
@@ -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.