svn commit: r273629 - head/sys/kern

Mateusz Guzik mjg at FreeBSD.org
Sat Oct 25 05:56:22 UTC 2014


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);
 }


More information about the svn-src-head mailing list