diff options
| author | Xiaoke Wang <[email protected]> | 2022-03-25 10:57:18 +0000 |
|---|---|---|
| committer | Thomas Bogendoerfer <[email protected]> | 2022-03-30 18:25:11 +0000 |
| commit | f93e2a100ee73a4b84d96d7d1881baaac36e586e (patch) | |
| tree | d62b7f7a926eddeba411642879e554cf99f7e2ea /net/unix/af_unix.c | |
| parent | MIPS: Fix build error for loongson64 and sgi-ip27 (diff) | |
| download | kernel-f93e2a100ee73a4b84d96d7d1881baaac36e586e.tar.gz kernel-f93e2a100ee73a4b84d96d7d1881baaac36e586e.zip | |
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: 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
