Re: [for-next][PATCH 08/15] tracing: Switch trace_events_trigger.c code over to use guard()

From: Markus Elfring
Date: Sat Dec 28 2024 - 08:53:20 EST



> Switch every location that ends with unlocking a mutex on error over to
> using the guard(mutex)() infrastructure to let the compiler worry about
> releasing locks. This makes the code easier to read and understand.
>
> Also use __free() for free a temporary buffer in event_trigger_regex_write().

Can it be safer and cleaner to split adjustments for these programming interfaces?
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.13-rc4#n81

Regards,
Markus