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-16 01:35:56 -08:00
2008-11-03 15:23:02 -05:00
2008-10-16 16:52:05 +02:00
2008-10-08 16:53:40 -07:00
2008-11-25 01:00:47 -08:00
2008-10-16 16:52:05 +02:00
2008-06-10 18:20:17 -04:00
2008-08-14 04:26:38 -04:00
2008-10-12 21:15:17 -07:00
2008-07-18 17:54:17 -07:00
2008-10-09 12:22:38 -07:00
2008-08-13 16:05:38 -07:00
2008-08-13 16:05:37 -07:00
2008-08-13 16:05:37 -07:00
2008-11-03 16:46:58 -08:00
2008-08-13 16:05:37 -07:00
2008-09-03 14:38:00 -07:00
2008-09-22 19:27:10 -07:00
2008-09-22 19:27:10 -07:00
2008-03-26 00:18:43 -04:00
2008-02-01 20:54:03 +11:00
2008-01-28 15:07:59 -08:00
2008-10-08 17:09:54 -07:00
2008-11-14 18:18:30 -05:00
2008-05-22 14:12:40 -04:00
2008-01-28 15:07:12 -08:00
2008-11-25 21:05:51 -08:00
2008-07-22 17:50:44 -04:00
2008-08-27 05:36:57 -04:00
2008-07-25 15:44:44 +10:00
2008-03-17 08:11:41 -04:00
2008-08-14 04:26:38 -04:00
2008-10-08 19:51:33 -07:00
2008-04-25 02:08:51 -04:00
2008-01-28 15:07:12 -08:00
2008-11-21 16:33:25 -08:00
2008-10-08 17:09:54 -07:00
2008-07-22 17:50:44 -04:00
2008-03-17 07:56:33 -04:00
2008-03-26 00:18:00 -04:00
2008-11-14 14:44:08 -08:00
2008-05-30 22:19:22 -04:00
2008-03-05 16:34:41 -06:00
2008-07-20 17:12:34 -07:00
2008-01-28 15:11:27 -08:00
2008-07-20 17:12:34 -07:00
2008-10-30 23:35:02 -07:00
2008-10-17 02:38:35 +11:00
2008-04-16 20:41:44 -04:00
2008-05-30 22:07:17 -04:00
2008-08-07 02:20:57 -04:00
2008-10-12 20:59:48 -07:00
2008-08-07 01:55:50 -04:00
2008-01-28 15:11:27 -08:00
2008-07-20 17:12:34 -07:00
2008-11-30 10:03:37 -08:00
2008-11-30 10:03:37 -08:00
2008-10-22 06:22:13 -04:00
2008-04-16 20:06:50 -04:00
2008-08-29 02:13:33 -07:00
2008-01-28 15:07:10 -08:00
2008-08-29 02:14:29 -07:00
2008-08-31 20:59:37 -07:00
2008-08-29 02:14:43 -07:00
2008-10-12 21:01:53 -07:00
2008-05-30 22:18:02 -04:00
2008-11-01 09:49:46 -07:00