diff options
author | Florian Fainelli <florian@openwrt.org> | 2007-09-29 17:09:04 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2007-09-29 17:09:04 +0000 |
commit | 473f0e3adc7693ab614b922746daf1af45490e5a (patch) | |
tree | 61edb1bf9ab5df8565bed9aab1871a63d697426e | |
parent | 6f3679e00ad5604fff3c15025916f055e1c14e95 (diff) | |
download | upstream-473f0e3adc7693ab614b922746daf1af45490e5a.tar.gz upstream-473f0e3adc7693ab614b922746daf1af45490e5a.tar.bz2 upstream-473f0e3adc7693ab614b922746daf1af45490e5a.zip |
Fix board type allocation
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9071 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | target/linux/rb532/files/arch/mips/rb500/prom.c | 1 |
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 45c6e63a17..0ed1173385 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) { |