fix null pointer access in mach-dir-600-a1.c machine setup (#8671)

SVN-Revision: 25043
lede-17.01
Jo-Philipp Wich 2011-01-18 18:04:50 +00:00
parent 5c8c4a2c1f
commit 18ed5bca9b
1 changed files with 2 additions and 2 deletions

View File

@ -118,8 +118,8 @@ static void __init dir_600_a1_setup(void)
if (nvram_parse_mac_addr(nvram, DIR_600_A1_NVRAM_SIZE, if (nvram_parse_mac_addr(nvram, DIR_600_A1_NVRAM_SIZE,
"lan_mac=", mac_buff) == 0) { "lan_mac=", mac_buff) == 0) {
ar71xx_init_mac(ar71xx_eth0_data.mac_addr, mac, 0); ar71xx_init_mac(ar71xx_eth0_data.mac_addr, mac_buff, 0);
ar71xx_init_mac(ar71xx_eth1_data.mac_addr, mac, 1); ar71xx_init_mac(ar71xx_eth1_data.mac_addr, mac_buff, 1);
mac = mac_buff; mac = mac_buff;
} }