]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:02:27 +0000 (14:02 +0100)
commite506f976c9143ed5920456f3847b102a581edbae
tree50d1fcca8f94f1a01350c0b14933c7b31e56c655
parent19e359b18ae346d444f882eeb30733fed8f04484
tools/nolibc: handle NULL wstatus argument to waitpid()

[ Upstream commit 812f223fe9be03dc22abb85240b6f075135d2386 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/include/nolibc/sys/wait.h