Skip to content

Commit

Permalink
USB gadget rndis: fix struct rndis_packet_msg_type unaligned bug
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wu, Bryan authored and Greg Kroah-Hartman committed Apr 27, 2007
1 parent 893a342 commit 178398d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/gadget/rndis.h
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ struct rndis_packet_msg_type
__le32 PerPacketInfoLength;
__le32 VcHandle;
__le32 Reserved;
};
} __attribute__ ((packed));

struct rndis_config_parameter
{
Expand Down

0 comments on commit 178398d

Please sign in to comment.