diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2019-11-10 23:59:34 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-11-10 23:59:34 +0300 |
commit | a5871fcba46edcf7380d9d86e6a07b3366c3c2f6 (patch) | |
tree | 6f120e1576eb969bdc707e7b9b746904dd2228b7 | |
parent | 9805a68371ce01eee3d8491ee2d93f1aa4a4da52 (diff) | |
parent | e2f238f7d5a1fa69ff1884d37acf9a2a3a01b308 (diff) | |
download | linux-a5871fcba46edcf7380d9d86e6a07b3366c3c2f6.tar.xz |
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
-rw-r--r-- | fs/configfs/symlink.c | 2 |
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); |