diff options
Diffstat (limited to 'kernel/audit.c')
-rw-r--r-- | kernel/audit.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/audit.c b/kernel/audit.c index 69ef8de69f03..46cd8f66af17 100644 --- a/kernel/audit.c +++ b/kernel/audit.c | |||
@@ -2315,6 +2315,9 @@ void audit_log_link_denied(const char *operation, const struct path *link) | |||
2315 | struct audit_buffer *ab; | 2315 | struct audit_buffer *ab; |
2316 | struct audit_names *name; | 2316 | struct audit_names *name; |
2317 | 2317 | ||
2318 | if (!audit_enabled || audit_dummy_context()) | ||
2319 | return; | ||
2320 | |||
2318 | name = kzalloc(sizeof(*name), GFP_NOFS); | 2321 | name = kzalloc(sizeof(*name), GFP_NOFS); |
2319 | if (!name) | 2322 | if (!name) |
2320 | return; | 2323 | return; |