diff options
Diffstat (limited to 'kernel/audit.c')
-rw-r--r-- | kernel/audit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/audit.c b/kernel/audit.c index 7dfac7031bd7..82443fb433ef 100644 --- a/kernel/audit.c +++ b/kernel/audit.c | |||
@@ -818,7 +818,7 @@ err: | |||
818 | */ | 818 | */ |
819 | unsigned int audit_serial(void) | 819 | unsigned int audit_serial(void) |
820 | { | 820 | { |
821 | static spinlock_t serial_lock = SPIN_LOCK_UNLOCKED; | 821 | static DEFINE_SPINLOCK(serial_lock); |
822 | static unsigned int serial = 0; | 822 | static unsigned int serial = 0; |
823 | 823 | ||
824 | unsigned long flags; | 824 | unsigned long flags; |