aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/rb532/files/arch/mips
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2007-09-29 17:09:04 +0000
committerFlorian Fainelli <florian@openwrt.org>2007-09-29 17:09:04 +0000
commitfae093332d85186bb636997148308ce1af6f13f0 (patch)
tree1fa33adaf3c5c15e79bb0d89d2defa8ddf8413e0 /target/linux/rb532/files/arch/mips
parent438dfe5c6fbfa63f5841fda9b4ec44b2f7712674 (diff)
downloadupstream-fae093332d85186bb636997148308ce1af6f13f0.tar.gz
upstream-fae093332d85186bb636997148308ce1af6f13f0.tar.bz2
upstream-fae093332d85186bb636997148308ce1af6f13f0.zip
Fix board type allocation
SVN-Revision: 9071
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 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) {