linux/arch/mips/lantiq/xway
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
..
clk.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
dcdc.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
dma.c MIPS: lantiq: dma: fix burst length for DEU 2021-11-18 19:16:23 +01:00
gptu.c MIPS: lantiq: check the return value of kzalloc() 2022-05-25 09:57:26 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
prom.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
sysctrl.c MIPS: lantiq: check the return value of kzalloc() 2022-05-25 09:57:26 +02:00
vmmc.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00