Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Aug 2014 15:42:58 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r270024 - head/sys/kern
Message-ID:  <201408151542.s7FFgw4u033050@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201408151542.s7FFgw4u033050>