aboutsummaryrefslogtreecommitdiffstats
path: root/fs/pnode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/pnode.c')
-rw-r--r--fs/pnode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/pnode.c b/fs/pnode.c
index 56aacead8362..89940f243fc2 100644
--- a/fs/pnode.c
+++ b/fs/pnode.c
@@ -59,7 +59,7 @@ static int do_make_slave(struct vfsmount *mnt)
59 } else { 59 } else {
60 struct list_head *p = &mnt->mnt_slave_list; 60 struct list_head *p = &mnt->mnt_slave_list;
61 while (!list_empty(p)) { 61 while (!list_empty(p)) {
62 slave_mnt = list_entry(p->next, 62 slave_mnt = list_first_entry(p,
63 struct vfsmount, mnt_slave); 63 struct vfsmount, mnt_slave);
64 list_del_init(&slave_mnt->mnt_slave); 64 list_del_init(&slave_mnt->mnt_slave);
65 slave_mnt->mnt_master = NULL; 65 slave_mnt->mnt_master = NULL;