We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9307fb9 commit d30248cCopy full SHA for d30248c
fs/configfs/symlink.c
@@ -83,14 +83,13 @@ static int create_link(struct config_item *parent_item,
83
ret = -ENOMEM;
84
sl = kmalloc(sizeof(struct configfs_symlink), GFP_KERNEL);
85
if (sl) {
86
- sl->sl_target = config_item_get(item);
87
spin_lock(&configfs_dirent_lock);
88
if (target_sd->s_type & CONFIGFS_USET_DROPPING) {
89
spin_unlock(&configfs_dirent_lock);
90
- config_item_put(item);
91
kfree(sl);
92
return -ENOENT;
93
}
+ sl->sl_target = config_item_get(item);
94
list_add(&sl->sl_list, &target_sd->s_links);
95
96
ret = configfs_create_link(sl, parent_item->ci_dentry,
0 commit comments