Просмотр исходного кода

add final fix for brcm47xx-2.6 memory corruption (patch from #1465)

SVN-Revision: 6575
Felix Fietkau 19 лет назад
Родитель
Сommit
a8fbb232f8
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      target/linux/brcm47xx-2.6/files/arch/mips/bcm947xx/cfe_env.c

+ 2 - 2
target/linux/brcm47xx-2.6/files/arch/mips/bcm947xx/cfe_env.c

@@ -18,8 +18,8 @@
 #include <asm/uaccess.h>
 
 #define NVRAM_SIZE       (0x1ff0)
-static char _nvdata[NVRAM_SIZE] __initdata;
-static char _valuestr[256] __initdata;
+static char _nvdata[NVRAM_SIZE];
+static char _valuestr[256];
 
 /*
  * TLV types.  These codes are used in the "type-length-value"