|
@@ -135,6 +135,8 @@ int __init ath25_find_config(phys_addr_t base, unsigned long size)
|
|
}
|
|
}
|
|
|
|
|
|
board_data = kzalloc(BOARD_CONFIG_BUFSZ, GFP_KERNEL);
|
|
board_data = kzalloc(BOARD_CONFIG_BUFSZ, GFP_KERNEL);
|
|
|
|
+ if (!board_data)
|
|
|
|
+ goto error;
|
|
ath25_board.config = (struct ath25_boarddata *)board_data;
|
|
ath25_board.config = (struct ath25_boarddata *)board_data;
|
|
memcpy_fromio(board_data, bcfg, 0x100);
|
|
memcpy_fromio(board_data, bcfg, 0x100);
|
|
if (broken_boarddata) {
|
|
if (broken_boarddata) {
|