summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath
diff options
context:
space:
mode:
authorLarry Finger <Larry.Finger@lwfinger.net>2014-10-08 12:44:55 -0500
committerJohn W. Linville <linville@tuxdriver.com>2014-10-08 15:24:16 -0400
commit1fca350b761631d182c2e8bce530896e66404bc2 (patch)
tree22e0bade399ab65eb5027f7c00bb60213a5847e3 /drivers/net/wireless/ath
parentca14405e3b25b38221d027d8970c1d74ed0b6532 (diff)
downloadtalos-obmc-linux-1fca350b761631d182c2e8bce530896e66404bc2.tar.gz
talos-obmc-linux-1fca350b761631d182c2e8bce530896e66404bc2.zip
rtlwifi: Fix possible unaligned array in ether_addr_copy()
Two macros used to copy BSSID information use ether_addr_copy(), thus the arrays must be 2-byte aligned. In one case, the array could become unaligned if the struct containing it were changed. Use the __unaligned(2) attribute to retain the necessary alignment. In addition, the magic number used to specify the size of the array is replaced by ETH_ALEN. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Acked-by: David S. Miller <davem@davemloft.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud