]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tools/nolibc: handle NULL wstatus argument to waitpid()
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Fri, 26 Sep 2025 14:26:58 +0000 (16:26 +0200)
committerThomas Weißschuh <linux@weissschuh.net>
Sun, 12 Oct 2025 20:48:07 +0000 (22:48 +0200)
commit812f223fe9be03dc22abb85240b6f075135d2386
treee08082966919f76f04fcffba922459446dc4a7f3
parent3a8660878839faadb4f1a6dd72c3179c1df56787
tools/nolibc: handle NULL wstatus argument to waitpid()

wstatus is allowed to be NULL. Avoid a segmentation fault in this case.

Fixes: 0c89abf5ab3f ("tools/nolibc: implement waitpid() in terms of waitid()")
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Acked-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
tools/include/nolibc/sys/wait.h