Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Oct 2014 05:56:22 +0000 (UTC)
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r273629 - head/sys/kern
Message-ID:  <201410250556.s9P5uMrx096600@svn.freebsd.org>

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



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