Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 147218
b: refs/heads/master
c: 4bcf349
h: refs/heads/master
v: v3
  • Loading branch information
Paul Mackerras authored and Ingo Molnar committed Feb 11, 2009
1 parent fe093fb commit a1d1735
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 5af759176cc767e7426f89764bde4996ebaaf419
refs/heads/master: 4bcf349a0f90d1e69eb35c6df0fa285c886c1cd6
9 changes: 4 additions & 5 deletions trunk/kernel/perf_counter.c
Original file line number Diff line number Diff line change
Expand Up @@ -1958,14 +1958,13 @@ __perf_counter_exit_task(struct task_struct *child,
sync_child_counter(child_counter, parent_counter);
list_for_each_entry_safe(sub, tmp, &child_counter->sibling_list,
list_entry) {
if (sub->parent)
if (sub->parent) {
sync_child_counter(sub, sub->parent);
kfree(sub);
kfree(sub);
}
}
}

if (!child_counter->filp || !atomic_long_read(&child_counter->filp->f_count))
kfree(child_counter);
}
}

/*
Expand Down

0 comments on commit a1d1735

Please sign in to comment.