diff options
Diffstat (limited to 'kernel/fork.c')
-rw-r--r-- | kernel/fork.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index abb3ed6298f6..5e050c1317c4 100644 --- a/kernel/fork.c +++ b/kernel/fork.c | |||
@@ -657,13 +657,6 @@ static struct fs_struct *__copy_fs_struct(struct fs_struct *old) | |||
657 | path_get(&old->root); | 657 | path_get(&old->root); |
658 | fs->pwd = old->pwd; | 658 | fs->pwd = old->pwd; |
659 | path_get(&old->pwd); | 659 | path_get(&old->pwd); |
660 | if (old->altroot.dentry) { | ||
661 | fs->altroot = old->altroot; | ||
662 | path_get(&old->altroot); | ||
663 | } else { | ||
664 | fs->altroot.mnt = NULL; | ||
665 | fs->altroot.dentry = NULL; | ||
666 | } | ||
667 | read_unlock(&old->lock); | 660 | read_unlock(&old->lock); |
668 | } | 661 | } |
669 | return fs; | 662 | return fs; |