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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Oct 2013 23:08:33 +0000 (16:08 -0700)
commitc00095f3c4dcafb0031cbab8abb43787efa7ee64
treec24364811f92f97f7a2e121fa74ea751022c15be
parentb07ce93054a72fe89b42096f7603afe3395a95ea
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/rtlwifi/wifi.h