Re: [PATCH] tracing/trigger: Fix to return error if failed to alloc snapshot

2024-01-26 Thread Steven Rostedt
On Fri, 26 Jan 2024 09:42:58 +0900 "Masami Hiramatsu (Google)" wrote: > From: Masami Hiramatsu (Google) > > Fix register_snapshot_trigger() to return error code if it failed to > allocate a snapshot instead of 0 (success). Unless that, it will register > snapshot trigger without an error. > >

[PATCH] tracing/trigger: Fix to return error if failed to alloc snapshot

2024-01-25 Thread Masami Hiramatsu (Google)
From: Masami Hiramatsu (Google) Fix register_snapshot_trigger() to return error code if it failed to allocate a snapshot instead of 0 (success). Unless that, it will register snapshot trigger without an error. Fixes: 0bbe7f719985 ("tracing: Fix the race between registering 'snapshot' event trig