fix null pointer access in mach-dir-600-a1.c machine setup (#8671)
authorJo-Philipp Wich <jow@openwrt.org>
Tue, 18 Jan 2011 18:04:50 +0000 (18:04 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Tue, 18 Jan 2011 18:04:50 +0000 (18:04 +0000)
SVN-Revision: 25043

target/linux/ar71xx/files/arch/mips/ar71xx/mach-dir-600-a1.c

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