diff options
| author | Feng Yang <yangfeng@kylinos.cn> | 2026-07-23 16:50:57 +0800 |
|---|---|---|
| committer | Kumar Kartikeya Dwivedi <memxor@gmail.com> | 2026-07-24 23:15:19 +0200 |
| commit | b04b8d4e198aefc863e7b702ececb957845b0c25 (patch) | |
| tree | 58deafc836a5a8e22779b5af989187b3a471aa56 /include/linux | |
| parent | 791841e038c40fb4c69c2888356650e554a3209a (diff) | |
selftests/bpf: Fix incorrect error checking for pthread_create
pthread_create returns 0 on success and a positive error code on failure;
it never returns a negative value. The current conditional branch can never be taken.
Failures during thread creation are silently ignored, which will lead to
invalid memory access when waiting on threads or dereferencing thread handles later.
Fixes: 91b2c0afd00c ("selftests/bpf: Add parallelism to test_progs")
Signed-off-by: Feng Yang <yangfeng@kylinos.cn>
Link: https://lore.kernel.org/bpf/20260723085100.482147-3-yangfeng59949@163.com
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
