svn commit: r270024 - head/sys/kern

Mark Johnston markj at FreeBSD.org
Fri Aug 15 15:42:59 UTC 2014


Author: markj
Date: Fri Aug 15 15:42:58 2014
New Revision: 270024
URL: http://svnweb.freebsd.org/changeset/base/270024

Log:
  Correct the order of arguments passed to LIST_INSERT_AFTER().
  
  Reviewed by:	kib
  X-MFC-With:	r269656

Modified:
  head/sys/kern/kern_exit.c

Modified: head/sys/kern/kern_exit.c
==============================================================================
--- head/sys/kern/kern_exit.c	Fri Aug 15 14:16:08 2014	(r270023)
+++ head/sys/kern/kern_exit.c	Fri Aug 15 15:42:58 2014	(r270024)
@@ -1278,8 +1278,8 @@ proc_reparent(struct proc *child, struct
 			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;
 	}


More information about the svn-src-all mailing list