]> Git Repo - linux.git/commitdiff
USB gadget rndis: fix struct rndis_packet_msg_type unaligned bug
authorWu, Bryan <[email protected]>
Thu, 26 Apr 2007 07:38:01 +0000 (00:38 -0700)
committerGreg Kroah-Hartman <[email protected]>
Fri, 27 Apr 2007 20:28:40 +0000 (13:28 -0700)
skb_push function may return a pointer which is not aligned as required
by struct rndis_packet_msg_type. Using attribute trick to fix this bug.

Signed-off-by: Roy Huang <[email protected]>
Signed-off-by: Jie Zhang <[email protected]>
Signed-off-by: Bryan Wu <[email protected]>
Cc: David Brownell <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/usb/gadget/rndis.h

index 4c3c7259f019bd072c3d205db4d563157b6a576c..397b149f3ca78bd24ea9209b9c5d0b815c61ec69 100644 (file)
@@ -195,7 +195,7 @@ struct rndis_packet_msg_type
        __le32  PerPacketInfoLength;
        __le32  VcHandle;
        __le32  Reserved;
-};
+} __attribute__ ((packed));
 
 struct rndis_config_parameter
 {
This page took 0.052001 seconds and 4 git commands to generate.