diff options
| author | Duoming Zhou <[email protected]> | 2024-03-06 17:12:59 +0800 |
|---|---|---|
| committer | Richard Weinberger <[email protected]> | 2024-04-22 21:38:23 +0200 |
| commit | 31a5990ed253a66712d7ddc29c92d297a991fdf2 (patch) | |
| tree | 03be64d613c2619918313c77e8942079781235b3 /tools/testing/selftests/bpf/progs/sendmsg_unix_prog.c | |
| parent | ed30a4a51bb196781c8058073ea720133a65596f (diff) | |
um: Fix return value in ubd_init()
When kmalloc_array() fails to allocate memory, the ubd_init()
should return -ENOMEM instead of -1. So, fix it.
Fixes: f88f0bdfc32f ("um: UBD Improvements")
Signed-off-by: Duoming Zhou <[email protected]>
Reviewed-by: Johannes Berg <[email protected]>
Signed-off-by: Richard Weinberger <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/sendmsg_unix_prog.c')
0 files changed, 0 insertions, 0 deletions