alx: fix MAC address alignment problem
authorJohannes Berg <johannes@sipsolutions.net>
Sat, 29 Jun 2013 17:23:18 +0000 (19:23 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Jul 2013 20:18:19 +0000 (13:18 -0700)
commit46ab9b347d677976b2b4072837cb4065839c0b80
tree39a7b23f5ab14eadbaa456ef1a29c9104db1b737
parenta5b87cc9e0538bf6680d431e0076d778e5bae38e
alx: fix MAC address alignment problem

In two places, parts of MAC addresses are used as u32/u16
values. This can cause alignment problems, use put_unaligned
and get_unaligned to fix this.

Reported-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/atheros/alx/hw.c