Commit 60ce314d authored by Larry Finger's avatar Larry Finger Committed by John W. Linville

rtlwifi: Align private space in rtl_priv struct

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: default avatarJason Andrews <jasona@cadence.com>
Tested-by: default avatarJason Andrews <jasona@cadence.com>
Signed-off-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Cc: Stable <stable@vger.kernel.org>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 919123d2
...@@ -2057,7 +2057,7 @@ struct rtl_priv { ...@@ -2057,7 +2057,7 @@ struct rtl_priv {
that it points to the data allocated that it points to the data allocated
beyond this structure like: beyond this structure like:
rtl_pci_priv or rtl_usb_priv */ rtl_pci_priv or rtl_usb_priv */
u8 priv[0]; u8 priv[0] __aligned(sizeof(void *));
}; };
#define rtl_priv(hw) (((struct rtl_priv *)(hw)->priv)) #define rtl_priv(hw) (((struct rtl_priv *)(hw)->priv))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment