linux-stable/arch/mips/lantiq
Xiaoke Wang 98e0a2e96a MIPS: lantiq: check the return value of kzalloc()
[ Upstream commit 34123208bb ]

kzalloc() is a memory allocation function which can return NULL when
some internal memory errors happen. So it is better to check the
return value of it to prevent potential wrong memory access or
memory leak.

Signed-off-by: Xiaoke Wang <xkernel.wang@foxmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-05-25 09:57:26 +02:00
..
falcon MIPS: lantiq: check the return value of kzalloc() 2022-05-25 09:57:26 +02:00
xway MIPS: lantiq: check the return value of kzalloc() 2022-05-25 09:57:26 +02:00
clk.c mips: lantiq: add support for clk_set_parent() 2022-01-27 11:04:17 +01:00
clk.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
early_printk.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
irq.c mips: Bulk conversion to generic_handle_domain_irq() 2021-08-12 11:39:40 +01:00
Kconfig MIPS: lantiq: Remove separate GPHY Firmware loader 2019-02-25 14:17:10 -08:00
Makefile treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
Platform MIPS: Only include the platform file needed 2020-05-13 00:17:18 +02:00
prom.c MIPS: of: Introduce helper function to get DTB 2021-02-04 13:34:51 +01:00
prom.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00