aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorXiaoke Wang <[email protected]>2022-03-25 11:49:41 +0000
committerThomas Bogendoerfer <[email protected]>2022-03-30 18:25:48 +0000
commit34123208bbcc8c884a0489f543a23fe9eebb5514 (patch)
treebbf316f4fad2183dd5c020dbadef27668b653640 /net/unix/af_unix.c
parentmips: sgi-ip22: add a check for the return of kzalloc() (diff)
downloadkernel-34123208bbcc8c884a0489f543a23fe9eebb5514.tar.gz
kernel-34123208bbcc8c884a0489f543a23fe9eebb5514.zip
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 <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions