Merge branch 'linus' into x86/cpu
[platform/adaptation/renesas_rcar/renesas_kernel.git] / kernel / auditsc.c
index c10e7aa..4699950 100644 (file)
@@ -1476,7 +1476,8 @@ void audit_syscall_entry(int arch, int major,
        struct audit_context *context = tsk->audit_context;
        enum audit_state     state;
 
-       BUG_ON(!context);
+       if (unlikely(!context))
+               return;
 
        /*
         * This happens only on certain architectures that make system