mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-29 12:03:03 +00:00
rlimit: plug duplicate assertion
counter sanity is already checked by refcount_release.
This commit is contained in:
parent
fbb045e15e
commit
675c3507d4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=273629
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user