From 5a38672d66366c27aaab50629a9143fde480c889 Mon Sep 17 00:00:00 2001 From: Ian Kent Date: Wed, 23 Jul 2008 21:30:13 -0700 Subject: [PATCH] --- yaml --- r: 105458 b: refs/heads/master c: ef581a742874ebc4c28d24b374c78b762144ebdc h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/autofs4/root.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index d20b56b5e088..2cca9dcc4977 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 2576737873dc1d9ea461a5955a5f6779b569a350 +refs/heads/master: ef581a742874ebc4c28d24b374c78b762144ebdc diff --git a/trunk/fs/autofs4/root.c b/trunk/fs/autofs4/root.c index dbb70d5a4882..324290c68275 100644 --- a/trunk/fs/autofs4/root.c +++ b/trunk/fs/autofs4/root.c @@ -775,6 +775,7 @@ static int autofs4_dir_symlink(struct inode *dir, list_del_init(&ino->active); spin_unlock(&sbi->lookup_lock); + ino->size = strlen(symname); cp = kmalloc(ino->size + 1, GFP_KERNEL); if (!cp) { if (!dentry->d_fsdata) @@ -806,7 +807,6 @@ static int autofs4_dir_symlink(struct inode *dir, atomic_inc(&p_ino->count); ino->inode = inode; - ino->size = strlen(symname); ino->u.symlink = cp; dir->i_mtime = CURRENT_TIME;