aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/auditsc.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/auditsc.c')
-rw-r--r--kernel/auditsc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/auditsc.c b/kernel/auditsc.c
index 9845cb32b60a..95293abb877a 100644
--- a/kernel/auditsc.c
+++ b/kernel/auditsc.c
@@ -943,8 +943,10 @@ int audit_alloc(struct task_struct *tsk)
943 return 0; /* Return if not auditing. */ 943 return 0; /* Return if not auditing. */
944 944
945 state = audit_filter_task(tsk, &key); 945 state = audit_filter_task(tsk, &key);
946 if (state == AUDIT_DISABLED) 946 if (state == AUDIT_DISABLED) {
947 clear_tsk_thread_flag(tsk, TIF_SYSCALL_AUDIT);
947 return 0; 948 return 0;
949 }
948 950
949 if (!(context = audit_alloc_context(state))) { 951 if (!(context = audit_alloc_context(state))) {
950 kfree(key); 952 kfree(key);