Fix MAC address access in 3c507, ibmlana, pcnet32 and libertas
authorDaniel Drake <dsd@laptop.org>
Thu, 24 Dec 2009 08:11:24 +0000 (08:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 27 Dec 2009 04:24:45 +0000 (20:24 -0800)
commit1f04493123763f5b8bc6d5de9aed0222345c052c
tree85b27e8a82a63a875740b67e9016fc11f432c453
parentf74dac0859bd9678b289ad9dc215026fd7ce033e
Fix MAC address access in 3c507, ibmlana, pcnet32 and libertas

Commit f001fde5eadd915f4858d22ed70d7040f48767cf changed
net_device.dev_addr from a 32-byte array to a pointer.

I found 4 ethernet drivers which rely on sizeof(dev_addr), which are now
only copying 4 bytes of the address information on 32bit systems.

Fix them to use ETH_ALEN.

Signed-off-by: Daniel Drake <dsd@laptop.org>
Reviewed-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/3c507.c
drivers/net/ibmlana.c
drivers/net/pcnet32.c
drivers/net/wireless/libertas/mesh.c