linux-stable/arch
Tiezhu Yang f524a25696 MIPS: Loongson: Fix potential NULL dereference in loongson3_platform_init()
[ Upstream commit 72d052e28d ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-02-28 16:35:57 +01:00
..
alpha
arc ARC: [plat-axs10x]: Add missing multicast filter number to GMAC node 2020-02-14 16:32:22 -05:00
arm ARM: 8723/2: always assume the "unified" syntax for assembly code 2020-02-28 16:35:52 +01:00
arm64 arm64: ssbs: Fix context-switch when SSBS is present on all CPUs 2020-02-28 16:35:53 +01:00
blackfin
c6x
cris
frv
h8300 h8300: use cc-cross-prefix instead of hardcoding h8300-unknown-linux- 2019-04-05 22:31:25 +02:00
hexagon hexagon: work around compiler crash 2020-01-17 19:45:55 +01:00
ia64 ia64:unwind: fix double free for mod->arch.init_unw_table 2019-10-05 12:47:48 +02:00
m32r
m68k m68k: Call timer_interrupt() with interrupts disabled 2020-01-27 14:46:54 +01:00
metag
microblaze microblaze: move "... is ready" messages to arch/microblaze/Makefile 2019-12-05 15:37:21 +01:00
mips MIPS: Loongson: Fix potential NULL dereference in loongson3_platform_init() 2020-02-28 16:35:57 +01:00
mn10300
nios2 nios2: ksyms: Add missing symbol exports 2020-01-27 14:46:24 +01:00
openrisc openrisc: Fix broken paths to arch/or32 2019-12-05 15:37:38 +01:00
parisc parisc: Fix compiler warnings in debug_core.c 2020-01-12 12:12:01 +01:00
powerpc powerpc/powernv/iov: Ensure the pdn for VFs always contains a valid PE number 2020-02-28 16:35:56 +01:00
s390 s390/time: Fix clk type in get_tod_clock 2020-02-28 16:35:54 +01:00
score
sh pinctrl: sh-pfc: sh7734: Fix duplicate TCLK1_B 2019-12-31 12:37:19 +01:00
sparc sparc32: fix struct ipc64_perm type definition 2020-02-14 16:32:06 -05:00
tile
um um: Make GCOV depend on !KCOV 2019-12-05 15:37:49 +01:00
unicore32
x86 efi/x86: Map the entire EFI vendor string before copying it 2020-02-28 16:35:56 +01:00
xtensa xtensa: fix TLB sanity checker 2019-12-21 10:47:43 +01:00
.gitignore
Kconfig