summaryrefslogtreecommitdiff
path: root/target/linux/ar71xx/files/arch/mips
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-01-18 18:04:50 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-01-18 18:04:50 +0000
commit18ed5bca9b429203ecca26dc50c7adca540e3dd0 (patch)
tree842ab45e3e24e954ecedba7367f8892a12f715f3 /target/linux/ar71xx/files/arch/mips
parent5c8c4a2c1f0b7f76357626482429c429c142b896 (diff)
downloadmtk-20170518-18ed5bca9b429203ecca26dc50c7adca540e3dd0.zip
mtk-20170518-18ed5bca9b429203ecca26dc50c7adca540e3dd0.tar.gz
mtk-20170518-18ed5bca9b429203ecca26dc50c7adca540e3dd0.tar.bz2
fix null pointer access in mach-dir-600-a1.c machine setup (#8671)
SVN-Revision: 25043
Diffstat (limited to 'target/linux/ar71xx/files/arch/mips')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/mach-dir-600-a1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-dir-600-a1.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-dir-600-a1.c
index c3b526c..bb59dfb 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-dir-600-a1.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-dir-600-a1.c
@@ -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;
}