]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf7630b65885d66c0e35326809c3d229fa70a92e3
tree24b51f8b2e8c3f7324dbde57e2cc6c0dd28ebe66
parent043446a8e9dc279d34b19ff4b861c5778e60d29b
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