Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 23992
b: refs/heads/master
c: 4023e02
h: refs/heads/master
v: v3
  • Loading branch information
Ingo Molnar authored and Al Viro committed Mar 20, 2006
1 parent 48d21c5 commit 5772ff4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 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: d9d9ec6e2c45b22282cd36cf92fcb23d504350a8
refs/heads/master: 4023e020807ea249ae83f0d1d851b4c7cf0afd8a
10 changes: 7 additions & 3 deletions trunk/kernel/auditsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -704,10 +704,14 @@ void audit_free(struct task_struct *tsk)
{
struct audit_context *context;

task_lock(tsk);
/*
* No need to lock the task - when we execute audit_free()
* then the task has no external references anymore, and
* we are tearing it down. (The locking also confuses
* DEBUG_LOCKDEP - this freeing may occur in softirq
* contexts as well, via RCU.)
*/
context = audit_get_context(tsk, 0, 0);
task_unlock(tsk);

if (likely(!context))
return;

Expand Down

0 comments on commit 5772ff4

Please sign in to comment.