Re: [PATCH 2/3] uprobes: simplify error handling for alloc_uprobe()

2024-07-11 Thread Google
On Wed, 10 Jul 2024 18:31:11 +0200 Oleg Nesterov wrote: > From: Andrii Nakryiko > > Return -ENOMEM instead of NULL, which makes caller's error handling just > a touch simpler. > > Signed-off-by: Andrii Nakryiko > Signed-off-by: Oleg Nesterov Looks good to me. Reviewed-by: Masami Hiramatsu

[PATCH 2/3] uprobes: simplify error handling for alloc_uprobe()

2024-07-10 Thread Oleg Nesterov
From: Andrii Nakryiko Return -ENOMEM instead of NULL, which makes caller's error handling just a touch simpler. Signed-off-by: Andrii Nakryiko Signed-off-by: Oleg Nesterov --- kernel/events/uprobes.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/kernel/events/uprobes.