Author: mjg
Date: Sat Oct 25 05:56:21 2014
New Revision: 273629
URL: https://svnweb.freebsd.org/changeset/base/273629

Log:
  rlimit: plug duplicate assertion
  
  counter sanity is already checked by refcount_release.

Modified:
  head/sys/kern/kern_resource.c

Modified: head/sys/kern/kern_resource.c
==============================================================================
--- head/sys/kern/kern_resource.c       Sat Oct 25 05:31:18 2014        
(r273628)
+++ head/sys/kern/kern_resource.c       Sat Oct 25 05:56:21 2014        
(r273629)
@@ -1168,7 +1168,6 @@ lim_free(limp)
        struct plimit *limp;
 {
 
-       KASSERT(limp->pl_refcnt > 0, ("plimit refcnt underflow"));
        if (refcount_release(&limp->pl_refcnt))
                free((void *)limp, M_PLIMIT);
 }
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to