projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
327b6b0
)
AUDIT: Fix task refcount leak in audit_filter_syscall()
author
David Woodhouse
<dwmw2@shinybook.infradead.org>
Wed, 17 Aug 2005 13:45:55 +0000
(14:45 +0100)
committer
David Woodhouse
<dwmw2@shinybook.infradead.org>
Wed, 17 Aug 2005 13:45:55 +0000
(14:45 +0100)
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
kernel/auditsc.c
patch
|
blob
|
history
diff --git
a/kernel/auditsc.c
b/kernel/auditsc.c
index 46b45abceb9ad0dae8f0ad3bc5eb8de5884d7c97..a73176eaa57ddee98372f83b6ed5f4da81d0c95e 100644
(file)
--- a/
kernel/auditsc.c
+++ b/
kernel/auditsc.c
@@
-1007,7
+1007,7
@@
void audit_syscall_exit(struct task_struct *tsk, int valid, long return_code)
/* Not having a context here is ok, since the parent may have
* called __put_task_struct. */
if (likely(!context))
-
return
;
+
goto out
;
if (context->in_syscall && context->auditable)
audit_log_exit(context, GFP_KERNEL);
@@
-1026,6
+1026,7
@@
void audit_syscall_exit(struct task_struct *tsk, int valid, long return_code)
audit_zero_context(context, context->state);
tsk->audit_context = context;
}
+ out:
put_task_struct(tsk);
}