diff options
author | Xiaoke Wang <[email protected]> | 2022-03-25 19:49:41 +0800 |
---|---|---|
committer | Thomas Bogendoerfer <[email protected]> | 2022-03-30 20:25:48 +0200 |
commit | 34123208bbcc8c884a0489f543a23fe9eebb5514 (patch) | |
tree | bbf316f4fad2183dd5c020dbadef27668b653640 /tools/testing/selftests/bpf/progs/test_prog_array_init.c | |
parent | f93e2a100ee73a4b84d96d7d1881baaac36e586e (diff) |
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 'tools/testing/selftests/bpf/progs/test_prog_array_init.c')
0 files changed, 0 insertions, 0 deletions