Commit 7340ad67 authored by Chris Wright's avatar Chris Wright Committed by Linus Torvalds

[PATCH] some minor cleanups for audit_log_lost() messages

Some minor cleanups for audit_log_lost() messages.
Signed-off-by: default avatarChris Wright <chrisw@osdl.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent be875f82
...@@ -160,7 +160,7 @@ static void audit_panic(const char *message) ...@@ -160,7 +160,7 @@ static void audit_panic(const char *message)
printk(KERN_ERR "audit: %s\n", message); printk(KERN_ERR "audit: %s\n", message);
break; break;
case AUDIT_FAIL_PANIC: case AUDIT_FAIL_PANIC:
panic(message); panic("audit: %s\n", message);
break; break;
} }
} }
...@@ -663,10 +663,10 @@ struct audit_buffer *audit_log_start(struct audit_context *ctx) ...@@ -663,10 +663,10 @@ struct audit_buffer *audit_log_start(struct audit_context *ctx)
if (!ab) if (!ab)
ab = kmalloc(sizeof(*ab), GFP_ATOMIC); ab = kmalloc(sizeof(*ab), GFP_ATOMIC);
if (!ab) if (!ab) {
audit_log_lost("audit: out of memory in audit_log_start"); audit_log_lost("out of memory in audit_log_start");
if (!ab)
return NULL; return NULL;
}
atomic_inc(&audit_backlog); atomic_inc(&audit_backlog);
skb_queue_head_init(&ab->sklist); skb_queue_head_init(&ab->sklist);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment