Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 155170
b: refs/heads/master
c: 4a2bb6f
h: refs/heads/master
v: v3
  • Loading branch information
Masami Hiramatsu authored and Ingo Molnar committed Jul 1, 2009
1 parent f08f589 commit 8539c94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 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: 238a24f626628cb16a3015f332d649f08246ca89
refs/heads/master: 4a2bb6fcc80e6330ca2f2393e98605052cc7780b
6 changes: 1 addition & 5 deletions trunk/kernel/kprobes.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,13 +237,9 @@ static int __kprobes collect_garbage_slots(void)
{
struct kprobe_insn_page *kip;
struct hlist_node *pos, *next;
int safety;

/* Ensure no-one is preepmted on the garbages */
mutex_unlock(&kprobe_insn_mutex);
safety = check_safety();
mutex_lock(&kprobe_insn_mutex);
if (safety != 0)
if (check_safety())
return -EAGAIN;

hlist_for_each_entry_safe(kip, pos, next, &kprobe_insn_pages, hlist) {
Expand Down

0 comments on commit 8539c94

Please sign in to comment.