android_kernel_samsung_a7y1.../arch/mips/loongson64
Tiezhu Yang 1516e09986 MIPS: Loongson: Fix potential NULL dereference in loongson3_platform_init()
[ Upstream commit 72d052e28d1d2363f9107be63ef3a3afdea6143c ]

If kzalloc fails, it should return -ENOMEM, otherwise may trigger a NULL
pointer dereference.

Fixes: 3adeb2566b9b ("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-04-07 13:55:46 +02:00
..
common mips: Loongson: Fix the link time qualifier of 'serial_exit()' 2020-04-07 09:24:10 +02:00
fuloong-2e A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
lemote-2f mips: loongson64: lemote-2f: Add IRQF_NO_SUSPEND to "cascade" irqaction. 2020-04-06 10:58:13 +02:00
loongson-3 MIPS: Loongson: Fix potential NULL dereference in loongson3_platform_init() 2020-04-07 13:55:46 +02:00
Kconfig A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Platform A750FXXU4CTBC 2020-03-27 21:51:54 +05:30