Thread (20 messages) flat view 20 messages, 3 authors, 2025-03-03

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

From: Markus Elfring <hidden>
Date: 2025-02-26 15:51:05
Also in: linux-kselftest, lkml

quoted hunk ↗ jump to hunk
+++ 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help