diff options
Diffstat (limited to 'kernel/audit.c')
-rw-r--r-- | kernel/audit.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/kernel/audit.c b/kernel/audit.c index e7bff8000d23..aa35422c0c42 100644 --- a/kernel/audit.c +++ b/kernel/audit.c | |||
@@ -620,7 +620,7 @@ struct audit_buffer *audit_log_start(struct audit_context *ctx) | |||
620 | struct audit_buffer *ab = NULL; | 620 | struct audit_buffer *ab = NULL; |
621 | unsigned long flags; | 621 | unsigned long flags; |
622 | struct timespec t; | 622 | struct timespec t; |
623 | int serial = 0; | 623 | unsigned int serial; |
624 | 624 | ||
625 | if (!audit_initialized) | 625 | if (!audit_initialized) |
626 | return NULL; | 626 | return NULL; |
@@ -669,8 +669,10 @@ struct audit_buffer *audit_log_start(struct audit_context *ctx) | |||
669 | audit_get_stamp(ab->ctx, &t, &serial); | 669 | audit_get_stamp(ab->ctx, &t, &serial); |
670 | else | 670 | else |
671 | #endif | 671 | #endif |
672 | { | ||
672 | t = CURRENT_TIME; | 673 | t = CURRENT_TIME; |
673 | 674 | serial = 0; | |
675 | } | ||
674 | audit_log_format(ab, "audit(%lu.%03lu:%u): ", | 676 | audit_log_format(ab, "audit(%lu.%03lu:%u): ", |
675 | t.tv_sec, t.tv_nsec/1000000, serial); | 677 | t.tv_sec, t.tv_nsec/1000000, serial); |
676 | return ab; | 678 | return ab; |