greth: greth_set_mac_add would corrupt the MAC address.
authorKristoffer Glembo <kristoffer@gaisler.com>
Tue, 5 Jul 2011 04:39:10 +0000 (21:39 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Jul 2011 04:39:10 +0000 (21:39 -0700)
commit9b9cfe7cf663c16c0d93349cc0094bb28ae7135a
tree24b51f8b2e8c3f7324dbde57e2cc6c0dd28ebe66
parentc349a528cd47e2272ded0ea358363855e86180da
greth: greth_set_mac_add would corrupt the MAC address.

The MAC address was set using the signed char sockaddr->sa_addr
field and thus the address could be corrupted through sign extension.

Signed-off-by: Kristoffer Glembo <kristoffer@gaisler.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/greth.c