USB gadget rndis: fix struct rndis_packet_msg_type unaligned bug
authorWu, Bryan <bryan.wu@analog.com>
Thu, 26 Apr 2007 07:38:01 +0000 (00:38 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 27 Apr 2007 20:28:40 +0000 (13:28 -0700)
commit178398dca00b276aaa1aded7cded89921f710365
tree2cdc2a4266f82403029e7019865254eef31c9f79
parent893a342a686e6ce36ef24d322f3f52420a041313
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>
drivers/usb/gadget/rndis.h