]> err.no Git - linux-2.6/blobdiff - kernel/audit.c
[PATCH] load_module() cleanup
[linux-2.6] / kernel / audit.c
index 7dfac7031bd734f6c117e66b660b436b842e41be..82443fb433efcb9d550126be82dabf80c0308c23 100644 (file)
@@ -818,7 +818,7 @@ err:
  */
 unsigned int audit_serial(void)
 {
-       static spinlock_t serial_lock = SPIN_LOCK_UNLOCKED;
+       static DEFINE_SPINLOCK(serial_lock);
        static unsigned int serial = 0;
 
        unsigned long flags;