X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=kernel%2Faudit.c;h=40414e9143db609b194b04e95c798351118f07b7;hb=6c536a17fa049d0fb690c1a947b97dbfd304a916;hp=4d0ceede33194e4d29334899ce3c85dba141fb65;hpb=aab174f0df5d72d31caccf281af5f614fa254578;p=~andy%2Flinux diff --git a/kernel/audit.c b/kernel/audit.c index 4d0ceede331..40414e9143d 100644 --- a/kernel/audit.c +++ b/kernel/audit.c @@ -1440,6 +1440,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);