rtlwifi: Align private space in rtl_priv struct
authorLarry Finger <Larry.Finger@lwfinger.net>
Thu, 19 Sep 2013 02:21:35 +0000 (21:21 -0500)
committerBen Hutchings <ben@decadent.org.uk>
Sat, 26 Oct 2013 20:06:06 +0000 (21:06 +0100)
commite9c2770cfd8038419657e596410ce42bdb2e1a5b
tree9a6fafb29ba4cb1bea32cb5a028a298b3276fb15
parent571d473b0b99c8035fa8df8d1fbbac5b00814bb6
rtlwifi: Align private space in rtl_priv struct

commit 60ce314d1750fef843e9db70050e09e49f838b69 upstream.

The private array at the end of the rtl_priv struct is not aligned.
On ARM architecture, this causes an alignment trap and is fixed by aligning
that array with __align(sizeof(void *)). That should properly align that
space according to the requirements of all architectures.

Reported-by: Jason Andrews <jasona@cadence.com>
Tested-by: Jason Andrews <jasona@cadence.com>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/net/wireless/rtlwifi/wifi.h