linux_dsm_epyc7002/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
..
ar2315_regs.h MIPS: ath25: add interrupts handling routines 2014-11-24 07:45:27 +01:00
ar2315.c genirq: Remove irq argument from irq flow handlers 2015-09-16 15:47:51 +02:00
ar2315.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ar5312_regs.h MIPS: ath25: add interrupts handling routines 2014-11-24 07:45:27 +01:00
ar5312.c genirq: Remove irq argument from irq flow handlers 2015-09-16 15:47:51 +02:00
ar5312.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
board.c MIPS: ath25: Check for kzalloc allocation failure 2018-02-23 09:35:54 +00:00
devices.c MIPS: ath25: Avoid undefined early_serial_setup() without SERIAL_8250_CONSOLE 2018-01-10 16:37:28 +01:00
devices.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
early_printk.c MIPS: ath25: add early printk support 2014-11-24 07:45:27 +01:00
Kconfig License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Makefile MIPS: ath25: add early printk support 2014-11-24 07:45:27 +01:00
Platform MIPS: ath25: add common parts 2014-11-24 07:45:26 +01:00
prom.c MIPS: ath25: add common parts 2014-11-24 07:45:26 +01:00