[PATCH 2/2] some minor cleanups for audit_log_lost() messages

Chris Wright chrisw at osdl.org
Wed Jan 26 00:33:57 UTC 2005


Some minor cleanups for audit_log_lost() messages.

Signed-off-by: Chris Wright <chrisw at osdl.org>

===== kernel/audit.c 1.7 vs edited =====
--- 1.7/kernel/audit.c	2005-01-25 14:35:07 -08:00
+++ edited/kernel/audit.c	2005-01-25 14:35:54 -08:00
@@ -160,7 +160,7 @@ static void audit_panic(const char *mess
 		printk(KERN_ERR "audit: %s\n", message);
 		break;
 	case AUDIT_FAIL_PANIC:
-		panic(message);
+		panic("audit: %s\n", message);
 		break;
 	}
 }
@@ -663,10 +663,10 @@ struct audit_buffer *audit_log_start(str
 
 	if (!ab)
 		ab = kmalloc(sizeof(*ab), GFP_ATOMIC);
-	if (!ab)
-		audit_log_lost("audit: out of memory in audit_log_start");
-	if (!ab)
+	if (!ab) {
+		audit_log_lost("out of memory in audit_log_start");
 		return NULL;
+	}
 
 	atomic_inc(&audit_backlog);
 	skb_queue_head_init(&ab->sklist);




More information about the Linux-audit mailing list