Changeset 9074


Ignore:
Timestamp:
2007-09-29T21:05:23+02:00 (10 years ago)
Author:
florian
Message:

Fix board_type allocation (again)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/rb532/files/arch/mips/rb500/prom.c

    r9071 r9074  
    137137                if (i>0) *(cp++) = ' '; 
    138138                if (strncmp(prom_argv[i], BOARD_TAG, sizeof(BOARD_TAG) - 1) == 0) { 
    139                         board_type = kzalloc(sizeof(prom_argv[i] + BOARD_TAG -1), GFP_KERNEL); 
     139                        board_type = (char *)kzalloc((sizeof(prom_argv[i]) + sizeof(BOARD_TAG) -1), GFP_KERNEL); 
    140140                        strcpy(board_type, prom_argv[i] + sizeof(BOARD_TAG) -1); 
    141141                } 
Note: See TracChangeset for help on using the changeset viewer.