aboutsummaryrefslogtreecommitdiff
path: root/kernel/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/util.c')
-rw-r--r--kernel/util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/util.c b/kernel/util.c
index 13f3fe5..ac6455d 100644
--- a/kernel/util.c
+++ b/kernel/util.c
@@ -17,7 +17,7 @@ MODULE_DESCRIPTION("Filesystem in Userspace");
MODULE_LICENSE("GPL");
#endif
-spinlock_t fuse_lock = SPIN_LOCK_UNLOCKED;
+spinlock_t fuse_lock;
int __init fuse_init(void)
{
@@ -27,6 +27,7 @@ int __init fuse_init(void)
FUSE_VERSION,
FUSE_KERNEL_VERSION, FUSE_KERNEL_MINOR_VERSION);
+ spin_lock_init(&fuse_lock);
res = fuse_fs_init();
if (res)
goto err;