Skip to content
Commit f93e2a10 authored by Xiaoke Wang's avatar Xiaoke Wang Committed by Thomas Bogendoerfer
Browse files

mips: sgi-ip22: add a check for the return of kzalloc()



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

Signed-off-by: default avatarXiaoke Wang <xkernel.wang@foxmail.com>
Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
parent f8f9f21c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment