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 | fae093332d85186bb636997148308ce1af6f13f0 (patch) | |
tree | 1fa33adaf3c5c15e79bb0d89d2defa8ddf8413e0 /target/linux/rb532/files/arch/mips/rb500/prom.c | |
parent | 438dfe5c6fbfa63f5841fda9b4ec44b2f7712674 (diff) | |
download | mtk-20170518-fae093332d85186bb636997148308ce1af6f13f0.zip mtk-20170518-fae093332d85186bb636997148308ce1af6f13f0.tar.gz mtk-20170518-fae093332d85186bb636997148308ce1af6f13f0.tar.bz2 |
Fix board type allocation
SVN-Revision: 9071
Diffstat (limited to 'target/linux/rb532/files/arch/mips/rb500/prom.c')
-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 45c6e63..0ed1173 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) { |