WSL2-Linux-Kernel/arch/mips/ath25
Colin Ian King 1b22b4b28f
MIPS: ath25: Check for kzalloc allocation failure
Currently there is no null check on a failed allocation of board_data,
and hence a null pointer dereference will occurr. Fix this by checking
for the out of memory null pointer.

Fixes: a747371748 ("MIPS: ath25: add board configuration detection")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
Cc: <stable@vger.kernel.org> # 3.19+
Patchwork: https://patchwork.linux-mips.org/patch/18657/
Signed-off-by: James Hogan <jhogan@kernel.org>
2018-02-23 09:35:54 +00:00
..
Kconfig
Makefile
Platform
ar2315.c
ar2315.h
ar2315_regs.h
ar5312.c
ar5312.h
ar5312_regs.h
board.c
devices.c
devices.h
early_printk.c
prom.c