aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/namespace.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/namespace.c b/fs/namespace.c
index 820af6a1dd6b..cd1e9681a0cf 100644
--- a/fs/namespace.c
+++ b/fs/namespace.c
@@ -1370,6 +1370,8 @@ void umount_tree(struct mount *mnt, int how)
1370 } 1370 }
1371 if (last) { 1371 if (last) {
1372 last->mnt_hash.next = unmounted.first; 1372 last->mnt_hash.next = unmounted.first;
1373 if (unmounted.first)
1374 unmounted.first->pprev = &last->mnt_hash.next;
1373 unmounted.first = tmp_list.first; 1375 unmounted.first = tmp_list.first;
1374 unmounted.first->pprev = &unmounted.first; 1376 unmounted.first->pprev = &unmounted.first;
1375 } 1377 }