aboutsummaryrefslogtreecommitdiffstats
path: root/fs/configfs/symlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/configfs/symlink.c')
-rw-r--r--fs/configfs/symlink.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/configfs/symlink.c b/fs/configfs/symlink.c
index 2a731ef5f305..676c84c416da 100644
--- a/fs/configfs/symlink.c
+++ b/fs/configfs/symlink.c
@@ -169,7 +169,9 @@ int configfs_unlink(struct inode *dir, struct dentry *dentry)
169 parent_item = configfs_get_config_item(dentry->d_parent); 169 parent_item = configfs_get_config_item(dentry->d_parent);
170 type = parent_item->ci_type; 170 type = parent_item->ci_type;
171 171
172 spin_lock(&configfs_dirent_lock);
172 list_del_init(&sd->s_sibling); 173 list_del_init(&sd->s_sibling);
174 spin_unlock(&configfs_dirent_lock);
173 configfs_drop_dentry(sd, dentry->d_parent); 175 configfs_drop_dentry(sd, dentry->d_parent);
174 dput(dentry); 176 dput(dentry);
175 configfs_put(sd); 177 configfs_put(sd);