X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=fs%2Fdebugfs%2Finode.c;h=b7fcc0de0b2f2771aff08a130eb20564adb3cbd4;hb=819db468b26797d9f53d547dd2a9fe94859a16e0;hp=5d8f35f1382ab11032f50dcd7029c40f5adf2159;hpb=373ee21eecebc5c06786a803d99661a3657afcc7;p=deliverable%2Flinux.git diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c index 5d8f35f1382a..b7fcc0de0b2f 100644 --- a/fs/debugfs/inode.c +++ b/fs/debugfs/inode.c @@ -271,8 +271,12 @@ static struct dentry *start_creating(const char *name, struct dentry *parent) dput(dentry); dentry = ERR_PTR(-EEXIST); } - if (IS_ERR(dentry)) + + if (IS_ERR(dentry)) { mutex_unlock(&d_inode(parent)->i_mutex); + simple_release_fs(&debugfs_mount, &debugfs_mount_count); + } + return dentry; }