Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141041
b: refs/heads/master
c: 2a4efa4
h: refs/heads/master
i:
  141039: 15d5f6f
v: v3
  • Loading branch information
Zhaolei authored and Steven Rostedt committed Mar 25, 2009
1 parent 4233c24 commit 46f0a4d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 759ee0915dd713361e72facb78b66600b5712d65
refs/heads/master: 2a4efa42450762cbfa5c5712aa4cc9f06924c9fd
9 changes: 7 additions & 2 deletions trunk/kernel/trace/ftrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -358,9 +358,14 @@ void ftrace_release(void *start, unsigned long size)

mutex_lock(&ftrace_lock);
do_for_each_ftrace_rec(pg, rec) {
if ((rec->ip >= s) && (rec->ip < e) &&
!(rec->flags & FTRACE_FL_FREE))
if ((rec->ip >= s) && (rec->ip < e)) {
/*
* rec->ip is changed in ftrace_free_rec()
* It should not between s and e if record was freed.
*/
FTRACE_WARN_ON(rec->flags & FTRACE_FL_FREE);
ftrace_free_rec(rec);
}
} while_for_each_ftrace_rec();
mutex_unlock(&ftrace_lock);
}
Expand Down

0 comments on commit 46f0a4d

Please sign in to comment.