aboutsummaryrefslogtreecommitdiffstats
path: root/fs/sysfs/mount.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/sysfs/mount.c')
-rw-r--r--fs/sysfs/mount.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/sysfs/mount.c b/fs/sysfs/mount.c
index 8133ca36ee0e..84ef378673a8 100644
--- a/fs/sysfs/mount.c
+++ b/fs/sysfs/mount.c
@@ -52,7 +52,9 @@ static int sysfs_fill_super(struct super_block *sb, void *data, int silent)
52 sysfs_sb = sb; 52 sysfs_sb = sb;
53 53
54 /* get root inode, initialize and unlock it */ 54 /* get root inode, initialize and unlock it */
55 mutex_lock(&sysfs_mutex);
55 inode = sysfs_get_inode(&sysfs_root); 56 inode = sysfs_get_inode(&sysfs_root);
57 mutex_unlock(&sysfs_mutex);
56 if (!inode) { 58 if (!inode) {
57 pr_debug("sysfs: could not get root inode\n"); 59 pr_debug("sysfs: could not get root inode\n");
58 return -ENOMEM; 60 return -ENOMEM;