diff --git a/[refs] b/[refs] index caf9fae9d811..62227f98a344 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 8231f2f99a5e5fc45a25e8de09fd1ab9711babf1 +refs/heads/master: 4a67a1bc0b3a0db017b560cee27370d141c58e25 diff --git a/trunk/fs/sysfs/mount.c b/trunk/fs/sysfs/mount.c index 8133ca36ee0e..84ef378673a8 100644 --- a/trunk/fs/sysfs/mount.c +++ b/trunk/fs/sysfs/mount.c @@ -52,7 +52,9 @@ static int sysfs_fill_super(struct super_block *sb, void *data, int silent) sysfs_sb = sb; /* get root inode, initialize and unlock it */ + mutex_lock(&sysfs_mutex); inode = sysfs_get_inode(&sysfs_root); + mutex_unlock(&sysfs_mutex); if (!inode) { pr_debug("sysfs: could not get root inode\n"); return -ENOMEM;