Author: mjg
Date: Mon Jul 22 02:07:15 2013
New Revision: 253538
URL: http://svnweb.freebsd.org/changeset/base/253538

Log:
  Remove cr_prison NULL check from proc_to_reap.
  
  Userspace processes always have a prison.
  
  MFC after:    2 weeks

Modified:
  head/sys/kern/kern_exit.c

Modified: head/sys/kern/kern_exit.c
==============================================================================
--- head/sys/kern/kern_exit.c   Mon Jul 22 00:44:37 2013        (r253537)
+++ head/sys/kern/kern_exit.c   Mon Jul 22 02:07:15 2013        (r253538)
@@ -918,8 +918,7 @@ proc_to_reap(struct thread *td, struct p
                }
                break;
        case P_JAILID:
-               if (p->p_ucred->cr_prison == NULL ||
-                   (p->p_ucred->cr_prison->pr_id != (int)id)) {
+               if (p->p_ucred->cr_prison->pr_id != (int)id) {
                        PROC_UNLOCK(p);
                        return (0);
                }
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to