Unverified Commit 2a9b96eb authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!14378 ftrace: Fix regression with module command in stack_trace_filter

parents e1673f16 49006b4b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -4312,6 +4312,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)