mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-16 22:39:48 +00:00
bpftool: Check malloc return value in mount_bpffs_for_pin
[ Upstream commitd444b06e40] Fix and add a missing NULL check for the prior malloc() call. Fixes:49a086c201("bpftool: implement prog load command") Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Reviewed-by: Quentin Monnet <quentin@isovalent.com> Acked-by: Roman Gushchin <guro@fb.com> Link: https://lore.kernel.org/bpf/20210715110609.29364-1-tklauser@distanz.ch Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
3b5b0afd8d
commit
2fc8048265
1 changed files with 5 additions and 0 deletions
Loading…
Add table
Add a link
Reference in a new issue