Unverified Commit 074c71be authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!14377 ftrace: Fix regression with module command in stack_trace_filter

parents 5672a2cb d0c7f1fc
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -4562,6 +4562,9 @@ ftrace_mod_callback(struct trace_array *tr, struct ftrace_hash *hash,
	char *func;
	int ret;

	if (!tr)
		return -ENODEV;

	/* match_records() modifies func, and we need the original */
	func = kstrdup(func_orig, GFP_KERNEL);
	if (!func)