[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20070304133812.GC8519@APFDCB5C>
Date: Sun, 4 Mar 2007 22:38:12 +0900
From: Akinobu Mita <akinobu.mita@...il.com>
To: linux-kernel@...r.kernel.org
Cc: Joel Becker <joel.becker@...cle.com>
Subject: [PATCH] configfs: add missing mutex_unlock()
From: Akinobu Mita <akinobu.mita@...il.com>
Subject: [PATCH] configfs: add missing mutex_unlock()
Add missing mutex_unlock() on d_alloc() failure in
configfs_register_subsystem().
Signed-off-by: Akinobu Mita <akinobu.mita@...il.com>
Cc: Joel Becker <joel.becker@...cle.com>
---
fs/configfs/dir.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
Index: 2.6-mm/fs/configfs/dir.c
===================================================================
--- 2.6-mm.orig/fs/configfs/dir.c
+++ 2.6-mm/fs/configfs/dir.c
@@ -1168,8 +1168,10 @@ int configfs_register_subsystem(struct c
err = -ENOMEM;
dentry = d_alloc(configfs_sb->s_root, &name);
- if (!dentry)
+ if (!dentry) {
+ mutex_unlock(&configfs_sb->s_root->d_inode->i_mutex);
goto out_release;
+ }
d_add(dentry, NULL);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists