diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index 00077a57b7468660f8629b915fcb0fcf17966d26..84286d347cd8de0d52cae808f9e20f62c0fd7926 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c @@ -3644,7 +3644,7 @@ ftrace_match_record(struct dyn_ftrace *rec, struct ftrace_glob *func_g, return 0; } - if (mod_matches && exclude_mod) + if (exclude_mod) return 0; func_match: