Skip to content

Commit a5871fc

Browse files
committed
Merge tag 'configfs-for-5.4-2' of git://git.infradead.org/users/hch/configfs
Pull configfs regression fix from Christoph Hellwig: "Fix a regression from this merge window in the configfs symlink handling (Honggang Li)" * tag 'configfs-for-5.4-2' of git://git.infradead.org/users/hch/configfs: configfs: calculate the depth of parent item
2 parents 9805a68 + e2f238f commit a5871fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/configfs/symlink.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ static int create_link(struct config_item *parent_item,
101101
}
102102
target_sd->s_links++;
103103
spin_unlock(&configfs_dirent_lock);
104-
ret = configfs_get_target_path(item, item, body);
104+
ret = configfs_get_target_path(parent_item, item, body);
105105
if (!ret)
106106
ret = configfs_create_link(target_sd, parent_item->ci_dentry,
107107
dentry, body);

0 commit comments

Comments
 (0)