summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/rndis.h
diff options
context:
space:
mode:
authorWu, Bryan2007-04-26 09:38:01 +0200
committerGreg Kroah-Hartman2007-04-27 22:28:40 +0200
commit178398dca00b276aaa1aded7cded89921f710365 (patch)
tree2cdc2a4266f82403029e7019865254eef31c9f79 /drivers/usb/gadget/rndis.h
parentUSB Elan FTDI: check for driver registration status (diff)
downloadkernel-qcow2-linux-178398dca00b276aaa1aded7cded89921f710365.tar.gz
kernel-qcow2-linux-178398dca00b276aaa1aded7cded89921f710365.tar.xz
kernel-qcow2-linux-178398dca00b276aaa1aded7cded89921f710365.zip
USB gadget rndis: fix struct rndis_packet_msg_type unaligned bug
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 <roy.huang@analog.com> Signed-off-by: Jie Zhang <jie.zhang@analog.com> Signed-off-by: Bryan Wu <bryan.wu@analog.com> Cc: David Brownell <david-b@pacbell.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/gadget/rndis.h')
-rw-r--r--drivers/usb/gadget/rndis.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/rndis.h b/drivers/usb/gadget/rndis.h
index 4c3c7259f019..397b149f3ca7 100644
--- a/drivers/usb/gadget/rndis.h
+++ b/drivers/usb/gadget/rndis.h
@@ -195,7 +195,7 @@ struct rndis_packet_msg_type
__le32 PerPacketInfoLength;
__le32 VcHandle;
__le32 Reserved;
-};
+} __attribute__ ((packed));
struct rndis_config_parameter
{