linux/arch/mips/loongson64
Tiezhu Yang 72d052e28d
MIPS: Loongson: Fix potential NULL dereference in loongson3_platform_init()
If kzalloc fails, it should return -ENOMEM, otherwise may trigger a NULL
pointer dereference.

Fixes: 3adeb2566b ("MIPS: Loongson: Improve LEFI firmware interface")
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: Paul Burton <paulburton@kernel.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Huacai Chen <chenhc@lemote.com>
Cc: Jiaxun Yang <jiaxun.yang@flygoat.com>
Cc: linux-mips@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
2020-01-10 14:10:24 -08:00
..
acpi_init.c MIPS: Loongson64: Move files to the top-level directory 2019-11-01 14:31:28 -07:00
cop2-ex.c MIPS: Loongson64: Move files to the top-level directory 2019-11-01 14:31:28 -07:00
dma.c MIPS: Loongson64: Move files to the top-level directory 2019-11-01 14:31:28 -07:00
env.c MIPS: Loongson64: Move files to the top-level directory 2019-11-01 14:31:28 -07:00
hpet.c MIPS: Loongson64: Move files to the top-level directory 2019-11-01 14:31:28 -07:00
init.c MIPS: Loongson{2ef, 32, 64} convert to generic fw cmdline 2019-11-11 10:44:56 -08:00
irq.c MIPS: Loongson64: Move files to the top-level directory 2019-11-01 14:31:28 -07:00
Kconfig MIPS: Loongson: Unify LOONGSON3/LOONGSON64 Kconfig usage 2019-11-11 10:43:54 -08:00
Makefile MIPS: Loongson{2ef, 32, 64} convert to generic fw cmdline 2019-11-11 10:44:56 -08:00
numa.c MIPS: Loongson64: Fix node_distance() 2020-01-09 09:54:29 -08:00
pci.c MIPS: Loongson64: Drop setup_pcimap 2019-11-11 10:45:01 -08:00
Platform A few MIPS fixes: 2019-11-01 14:36:44 -07:00
platform.c MIPS: Loongson: Fix potential NULL dereference in loongson3_platform_init() 2020-01-10 14:10:24 -08:00
pm.c MIPS: Loongson64: Move files to the top-level directory 2019-11-01 14:31:28 -07:00
reset.c MIPS: Loongson64: Move files to the top-level directory 2019-11-01 14:31:28 -07:00
rtc.c MIPS: Loongson64: Move files to the top-level directory 2019-11-01 14:31:28 -07:00
setup.c MIPS: Loongson64: Move files to the top-level directory 2019-11-01 14:31:28 -07:00
smp.c MIPS: Loongson64: Move files to the top-level directory 2019-11-01 14:31:28 -07:00
smp.h MIPS: Loongson64: Move files to the top-level directory 2019-11-01 14:31:28 -07:00
time.c MIPS: Loongson64: Move files to the top-level directory 2019-11-01 14:31:28 -07:00