]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - kernel/audit.c
xfs: fix reading of wrapped log data
[karo-tx-linux.git] / kernel / audit.c
index ea3b7b6191c7af3347dce055a88af200c55d1f5d..a8c84be9b9ea0ca5677852e6ea160325086bba12 100644 (file)
@@ -1466,6 +1466,8 @@ void audit_log_link_denied(const char *operation, struct path *link)
 
        ab = audit_log_start(current->audit_context, GFP_KERNEL,
                             AUDIT_ANOM_LINK);
+       if (!ab)
+               return;
        audit_log_format(ab, "op=%s action=denied", operation);
        audit_log_format(ab, " pid=%d comm=", current->pid);
        audit_log_untrustedstring(ab, current->comm);