Correct the order of arguments passed to LIST_INSERT_AFTER().

Reviewed by:	kib
X-MFC-With:	r269656
This commit is contained in:
Mark Johnston 2014-08-15 15:42:58 +00:00
parent e85343b1a5
commit ba78d6b7a1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=270024

View file

@ -1278,8 +1278,8 @@ proc_reparent(struct proc *child, struct proc *parent)
LIST_INSERT_HEAD(&child->p_pptr->p_orphans, child,
p_orphan);
} else {
LIST_INSERT_AFTER(child,
LIST_FIRST(&child->p_pptr->p_orphans), p_orphan);
LIST_INSERT_AFTER(LIST_FIRST(&child->p_pptr->p_orphans),
child, p_orphan);
}
child->p_treeflag |= P_TREE_ORPHANED;
}