mirror of
https://github.com/torvalds/linux.git
synced 2026-12-01 02:54:05 +00:00
Fix and add a missing NULL check for the prior malloc() call.
Fixes: 49a086c201 ("bpftool: implement prog load command")
Signed-off-by: Tobias Klauser <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Reviewed-by: Quentin Monnet <[email protected]>
Acked-by: Roman Gushchin <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]