]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
uprobes: simplify error handling for alloc_uprobe()
authorAndrii Nakryiko <andrii@kernel.org>
Thu, 1 Aug 2024 13:27:19 +0000 (15:27 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 2 Aug 2024 09:30:31 +0000 (11:30 +0200)
commit7c2bae2d9c27a89280b63ff3567d2dac2d89db28
tree2a108010d8f8030af28682072bfefea0addba918
parent300b05621a3f85621130e356ca6ae90f6a4eec0e
uprobes: simplify error handling for alloc_uprobe()

Return -ENOMEM instead of NULL, which makes caller's error handling just
a touch simpler.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: "Masami Hiramatsu (Google)" <mhiramat@kernel.org>
Reviewed-by: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/r/20240801132719.GA8788@redhat.com
kernel/events/uprobes.c