aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/audit.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/audit.c')
-rw-r--r--kernel/audit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/audit.c b/kernel/audit.c
index 6d61dd79a605..1c3eb1b12bfc 100644
--- a/kernel/audit.c
+++ b/kernel/audit.c
@@ -702,6 +702,9 @@ struct audit_buffer *audit_log_start(struct audit_context *ctx, gfp_t gfp_mask,
702 if (!audit_initialized) 702 if (!audit_initialized)
703 return NULL; 703 return NULL;
704 704
705 if (unlikely(audit_filter_type(type)))
706 return NULL;
707
705 if (gfp_mask & __GFP_WAIT) 708 if (gfp_mask & __GFP_WAIT)
706 reserve = 0; 709 reserve = 0;
707 else 710 else