Files
linux/samples
Zichen Xie 5816a934cf samples/landlock: Fix possible NULL dereference in parse_path()
[ Upstream commit 078bf9438a ]

malloc() may return NULL, leading to NULL dereference.  Add a NULL
check.

Fixes: ba84b0bf5a ("samples/landlock: Add a sandbox manager example")
Signed-off-by: Zichen Xie <zichenxie0106@gmail.com>
Link: https://lore.kernel.org/r/20241128032955.11711-1-zichenxie0106@gmail.com
[mic: Simplify fix]
Signed-off-by: Mickaël Salaün <mic@digikod.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-02-08 09:57:11 +01:00
..
2024-05-04 18:59:44 +02:00
2024-12-14 20:03:46 +01:00
2024-09-01 20:25:50 -07:00