summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2019-11-10 12:59:34 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2019-11-10 12:59:34 -0800
commita5871fcba46edcf7380d9d86e6a07b3366c3c2f6 (patch)
tree6f120e1576eb969bdc707e7b9b746904dd2228b7 /fs
parent9805a68371ce01eee3d8491ee2d93f1aa4a4da52 (diff)
parente2f238f7d5a1fa69ff1884d37acf9a2a3a01b308 (diff)
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
Diffstat (limited to 'fs')
-rw-r--r--fs/configfs/symlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/configfs/symlink.c b/fs/configfs/symlink.c
index dc5dbf6a81d7..cb61467478ca 100644
--- a/fs/configfs/symlink.c
+++ b/fs/configfs/symlink.c
@@ -101,7 +101,7 @@ static int create_link(struct config_item *parent_item,
}
target_sd->s_links++;
spin_unlock(&configfs_dirent_lock);
- ret = configfs_get_target_path(item, item, body);
+ ret = configfs_get_target_path(parent_item, item, body);
if (!ret)
ret = configfs_create_link(target_sd, parent_item->ci_dentry,
dentry, body);