diff options
Diffstat (limited to 'fs/autofs4')
-rw-r--r-- | fs/autofs4/root.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/autofs4/root.c b/fs/autofs4/root.c index dbb70d5a4882..324290c68275 100644 --- a/fs/autofs4/root.c +++ b/fs/autofs4/root.c | |||
@@ -775,6 +775,7 @@ static int autofs4_dir_symlink(struct inode *dir, | |||
775 | list_del_init(&ino->active); | 775 | list_del_init(&ino->active); |
776 | spin_unlock(&sbi->lookup_lock); | 776 | spin_unlock(&sbi->lookup_lock); |
777 | 777 | ||
778 | ino->size = strlen(symname); | ||
778 | cp = kmalloc(ino->size + 1, GFP_KERNEL); | 779 | cp = kmalloc(ino->size + 1, GFP_KERNEL); |
779 | if (!cp) { | 780 | if (!cp) { |
780 | if (!dentry->d_fsdata) | 781 | if (!dentry->d_fsdata) |
@@ -806,7 +807,6 @@ static int autofs4_dir_symlink(struct inode *dir, | |||
806 | atomic_inc(&p_ino->count); | 807 | atomic_inc(&p_ino->count); |
807 | ino->inode = inode; | 808 | ino->inode = inode; |
808 | 809 | ||
809 | ino->size = strlen(symname); | ||
810 | ino->u.symlink = cp; | 810 | ino->u.symlink = cp; |
811 | dir->i_mtime = CURRENT_TIME; | 811 | dir->i_mtime = CURRENT_TIME; |
812 | 812 | ||