From: Larry Finger Date: Wed, 8 Oct 2014 17:44:55 +0000 (-0500) Subject: rtlwifi: Fix possible unaligned array in ether_addr_copy() X-Git-Tag: fixes-against-v3.18-rc2~115^2~10^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1fca350b761631d182c2e8bce530896e66404bc2;p=pandora-kernel.git 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 Acked-by: David S. Miller Signed-off-by: John W. Linville --- Reading git-diff-tree failed