…
> +++ 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

Reply via email to