|
|
@ -992,7 +992,10 @@ void __init ath79_init_mac(unsigned char *dst, const unsigned char *src, |
|
|
|
{ |
|
|
|
{ |
|
|
|
int t; |
|
|
|
int t; |
|
|
|
|
|
|
|
|
|
|
|
if (!is_valid_ether_addr(src)) { |
|
|
|
if (!dst) |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!src || !is_valid_ether_addr(src)) { |
|
|
|
memset(dst, '\0', ETH_ALEN); |
|
|
|
memset(dst, '\0', ETH_ALEN); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
@ -1012,7 +1015,10 @@ void __init ath79_init_local_mac(unsigned char *dst, const unsigned char *src) |
|
|
|
{ |
|
|
|
{ |
|
|
|
int i; |
|
|
|
int i; |
|
|
|
|
|
|
|
|
|
|
|
if (!is_valid_ether_addr(src)) { |
|
|
|
if (!dst) |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!src || !is_valid_ether_addr(src)) { |
|
|
|
memset(dst, '\0', ETH_ALEN); |
|
|
|
memset(dst, '\0', ETH_ALEN); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|