mirror of
https://github.com/torvalds/linux.git
synced 2026-12-05 12:54:27 +00:00
Check if fp->rethook succeeded to be allocated. Otherwise, if
rethook_alloc() fails, then we end up dereferencing a NULL pointer in
rethook_add_node().
Link: https://lore.kernel.org/all/[email protected]/
Fixes: 5b0ab78998 ("fprobe: Add exit_handler support")
Cc: [email protected]
Signed-off-by: Rafael Mendonca <[email protected]>
Acked-by: Steven Rostedt (Google) <[email protected]>
Acked-by: Masami Hiramatsu (Google) <[email protected]>
Signed-off-by: Masami Hiramatsu (Google) <[email protected]>