|
@@ -5043,7 +5043,7 @@ int ftrace_regex_release(struct inode *inode, struct file *file)
|
|
|
|
|
|
if (filter_hash) {
|
|
if (filter_hash) {
|
|
orig_hash = &iter->ops->func_hash->filter_hash;
|
|
orig_hash = &iter->ops->func_hash->filter_hash;
|
|
- if (!list_empty(&iter->tr->mod_trace))
|
|
|
|
|
|
+ if (iter->tr && !list_empty(&iter->tr->mod_trace))
|
|
iter->hash->flags |= FTRACE_HASH_FL_MOD;
|
|
iter->hash->flags |= FTRACE_HASH_FL_MOD;
|
|
} else
|
|
} else
|
|
orig_hash = &iter->ops->func_hash->notrace_hash;
|
|
orig_hash = &iter->ops->func_hash->notrace_hash;
|