Shaddy Baddah
cde6901b7b
zd1211rw: use unaligned safe memcmp() in-place of compare_ether_addr()
...
Under my 2.6.28-rc6 sparc64, when associating to an AP through my
zd1211rw device, I was seeing kernel log messages like (not exact output):
Kernel unaligned access at TPC[10129b68] zd_mac_rx+0x144/0x32c [zd1211rw]
For the zd1211rw module, on RX, the 80211 packet will be located after
the PLCP header in the skb data buffer. The PLCP header being 5 bytes
long, the 80211 header will start unaligned from an aligned skb
buffer.
As per Documentation/unaligned-memory-access.txt, we must replace the
not unaligned() safe compare_ether_addr() with memcmp() to protect
architectures that require alignment.
Signed-off-by: Shaddy Baddah <shaddy_baddah@hotmail.com >
Signed-off-by: John W. Linville <linville@tuxdriver.com >
2008-12-05 09:18:35 -05:00
..
2008-11-25 16:13:08 -05:00
2008-11-25 16:13:08 -05:00
2008-10-13 14:12:40 -07:00
2008-10-06 18:14:57 -04:00
2008-11-12 16:54:22 -05:00
2008-12-05 09:18:34 -05:00
2008-10-29 17:54:35 -04:00
2008-11-18 17:26:26 -05:00
2008-10-27 17:46:11 -04:00
2008-08-22 16:29:56 -04:00
2008-10-29 17:54:35 -04:00
2008-12-05 09:18:35 -05:00
2008-09-15 16:48:23 -04:00
2008-05-21 21:48:11 -04:00
2008-10-13 14:12:40 -07:00
2008-09-24 16:17:58 -04:00
2005-11-05 21:00:03 -05:00
2008-08-22 19:28:05 -04:00
2008-05-14 16:29:48 -04:00
2008-03-24 19:25:08 -04:00
2008-05-14 16:29:48 -04:00
2008-10-13 14:12:40 -07:00
2006-12-02 00:11:57 -05:00
2008-09-24 16:17:58 -04:00
2005-11-11 08:12:17 -05:00
2008-08-22 19:28:05 -04:00
2008-08-22 19:28:05 -04:00
2008-08-22 19:28:06 -04:00
2008-08-22 19:28:04 -04:00
2008-08-22 19:28:07 -04:00
2005-11-18 13:29:06 -05:00
2008-08-22 16:29:56 -04:00
2007-10-19 20:35:20 -07:00
2008-12-05 09:18:35 -05:00
2008-08-22 16:29:56 -04:00
2008-08-22 19:28:07 -04:00
2008-10-16 09:24:43 -07:00
2008-08-22 19:28:04 -04:00
2008-10-13 14:12:40 -07:00
2008-10-16 11:26:26 -07:00
2008-08-22 19:28:05 -04:00
2008-08-22 19:28:05 -04:00
2006-12-02 00:12:03 -05:00
2008-08-22 19:28:05 -04:00
2008-08-22 19:28:05 -04:00
2008-10-22 18:09:32 -04:00
2008-08-22 19:28:07 -04:00
2008-10-13 14:12:40 -07:00
2007-10-14 12:41:51 -07:00
2008-09-24 16:17:58 -04:00
2008-08-22 16:29:48 -04:00
2008-10-06 18:14:57 -04:00
2008-05-28 16:43:40 -04:00
2008-01-28 15:09:35 -08:00
2008-05-28 16:43:39 -04:00
2008-01-28 15:09:35 -08:00
2008-02-29 15:19:32 -05:00
2008-01-28 15:09:35 -08:00
2008-05-28 16:43:38 -04:00
2008-01-28 15:09:35 -08:00
2008-08-22 16:29:48 -04:00
2008-11-12 16:49:57 -05:00
2008-07-14 14:52:56 -04:00
2008-07-14 14:52:56 -04:00
2008-08-22 16:29:48 -04:00
2008-10-16 11:26:26 -07:00
2008-07-20 17:12:38 -07:00
2008-10-13 14:12:40 -07:00
2008-03-24 19:25:07 -04:00
2008-04-08 15:05:57 -04:00
2008-10-13 19:01:08 -07:00
2008-02-15 13:44:17 -05:00
2008-10-13 19:01:08 -07:00
2008-10-13 14:12:40 -07:00
2006-03-31 17:15:57 +02:00
2008-07-18 02:39:39 -07:00
2006-06-05 16:13:30 -04:00