summaryrefslogtreecommitdiff
path: root/arch/mips/include
diff options
context:
space:
mode:
authorXiaoke Wang <xkernel.wang@foxmail.com>2022-03-25 14:49:41 +0300
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2022-03-30 21:25:48 +0300
commit34123208bbcc8c884a0489f543a23fe9eebb5514 (patch)
treebbf316f4fad2183dd5c020dbadef27668b653640 /arch/mips/include
parentf93e2a100ee73a4b84d96d7d1881baaac36e586e (diff)
downloadlinux-34123208bbcc8c884a0489f543a23fe9eebb5514.tar.xz
MIPS: lantiq: check the return value of kzalloc()
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>
Diffstat (limited to 'arch/mips/include')
0 files changed, 0 insertions, 0 deletions