Re: [PATCH 2/8] tracing: tprobe-events: Reject invalid tracepoint name

Markus Elfring
2025-02-26T15:51:05Z

…
> +++ b/kernel/trace/trace_fprobe.c
> @@ -1049,6 +1049,19 @@ static int parse_symbol_and_return(int argc, const char *argv[],
> if (*is_return)
> return 0;
>
> + if (is_tracepoint) {
…
> + kfree(*symbol);
> + *symbol = NULL;
> + return -EINVAL;
> + }
> + }
…

May a bit of exception handling code be shared by an additional jump target?
Will another goto chain become helpful here?

Regards,
Markus