summaryrefslogtreecommitdiffstats
path: root/target/linux/rb532/files/arch/mips
diff options
context:
space:
mode:
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-09-29 17:09:04 +0000
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-09-29 17:09:04 +0000
commitd4e9693fe237fc17f125e0423e6858a0e17fae1d (patch)
tree61edb1bf9ab5df8565bed9aab1871a63d697426e /target/linux/rb532/files/arch/mips
parente37f1f2b7cbbfbf2de4c4c8e72c4cd1b1e149e0b (diff)
Fix board type allocation
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9071 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/rb532/files/arch/mips')
-rw-r--r--target/linux/rb532/files/arch/mips/rb500/prom.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/target/linux/rb532/files/arch/mips/rb500/prom.c b/target/linux/rb532/files/arch/mips/rb500/prom.c
index 45c6e63a1..0ed117338 100644
--- a/target/linux/rb532/files/arch/mips/rb500/prom.c
+++ b/target/linux/rb532/files/arch/mips/rb500/prom.c
@@ -136,6 +136,7 @@ void __init prom_setup_cmdline(void){
#endif
if (i>0) *(cp++) = ' ';
if (strncmp(prom_argv[i], BOARD_TAG, sizeof(BOARD_TAG) - 1) == 0) {
+ board_type = kzalloc(sizeof(prom_argv[i] + BOARD_TAG -1), GFP_KERNEL);
strcpy(board_type, prom_argv[i] + sizeof(BOARD_TAG) -1);
}
if (strncmp(prom_argv[i], GPIO_TAG, sizeof(GPIO_TAG) - 1) == 0) {