All pastes #719737 Raw Edit

florian

public text v1 · immutable
#719737 ·published 2007-09-29 15:50 UTC
rendered paste body
Index: trunk/target/linux/rb532/files/arch/mips/rb500/prom.c
===================================================================
--- trunk/target/linux/rb532/files/arch/mips/rb500/prom.c       (revision 9070)
+++ trunk/target/linux/rb532/files/arch/mips/rb500/prom.c       (working copy)
@@ -136,6 +136,7 @@
 #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) {