From d317c0dce686b77fbcc7b6831d3058cb59f8615d Mon Sep 17 00:00:00 2001 From: "Eric W. Biederman" Date: Wed, 21 Jan 2009 11:55:11 -0800 Subject: [PATCH] --- yaml --- r: 133439 b: refs/heads/master c: 4a67a1bc0b3a0db017b560cee27370d141c58e25 h: refs/heads/master i: 133437: 0309df3faf404342adb7b8b53ece995ff107ce15 133435: f4c8ebd09d40157c7f4acc88e0ecbd7c098c9f99 133431: 1fbd3a427ce005458bcbdbbbc5914a5a57ed9592 133423: 668bb095741307a6a2131640d1583a7dd057218b 133407: fe5c3db3673620b3c65874e8222f1e5e6e3bed24 133375: 0c995b71ec8863282d6f356131dcb97a66432613 v: v3 --- [refs] | 2 +- trunk/fs/sysfs/mount.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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;