Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 105458
b: refs/heads/master
c: ef581a7
h: refs/heads/master
v: v3
  • Loading branch information
Ian Kent authored and Linus Torvalds committed Jul 24, 2008
1 parent 2f6b3c6 commit 5a38672
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2576737873dc1d9ea461a5955a5f6779b569a350
refs/heads/master: ef581a742874ebc4c28d24b374c78b762144ebdc
2 changes: 1 addition & 1 deletion trunk/fs/autofs4/root.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 5a38672

Please sign in to comment.