diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2015-05-02 16:28:56 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2015-05-11 04:18:25 +0200 |
commit | 4b8061a67f67ebd28d4273b05d1b6ae38f2a019b (patch) | |
tree | 30cfaddc69273f2d0c65e842e175f0ad50097ead /fs/ufs/namei.c | |
parent | debugfs: switch to simple_follow_link() (diff) | |
download | linux-4b8061a67f67ebd28d4273b05d1b6ae38f2a019b.tar.xz linux-4b8061a67f67ebd28d4273b05d1b6ae38f2a019b.zip |
ufs: switch to simple_follow_link()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ufs/namei.c')
-rw-r--r-- | fs/ufs/namei.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/ufs/namei.c b/fs/ufs/namei.c index e491a93a7e9a..f773deb1d2e3 100644 --- a/fs/ufs/namei.c +++ b/fs/ufs/namei.c @@ -144,7 +144,8 @@ static int ufs_symlink (struct inode * dir, struct dentry * dentry, } else { /* fast symlink */ inode->i_op = &ufs_fast_symlink_inode_operations; - memcpy(UFS_I(inode)->i_u1.i_symlink, symname, l); + inode->i_link = (char *)UFS_I(inode)->i_u1.i_symlink; + memcpy(inode->i_link, symname, l); inode->i_size = l-1; } mark_inode_dirty(inode); |