svn commit: r269813 - head/sys/kern
Gleb Smirnoff
glebius at FreeBSD.org
Mon Aug 11 15:06:07 UTC 2014
Author: glebius
Date: Mon Aug 11 15:06:07 2014
New Revision: 269813
URL: http://svnweb.freebsd.org/changeset/base/269813
Log:
Move KASSERT into locked region.
Submitted by: kib
Modified:
head/sys/kern/subr_sfbuf.c
Modified: head/sys/kern/subr_sfbuf.c
==============================================================================
--- head/sys/kern/subr_sfbuf.c Mon Aug 11 14:50:49 2014 (r269812)
+++ head/sys/kern/subr_sfbuf.c Mon Aug 11 15:06:07 2014 (r269813)
@@ -209,9 +209,8 @@ sf_buf_ref(struct sf_buf *sf)
return;
#endif
- KASSERT(sf->ref_count > 0, ("%s: sf %p not allocated", __func__, sf));
-
mtx_lock(&sf_buf_lock);
+ KASSERT(sf->ref_count > 0, ("%s: sf %p not allocated", __func__, sf));
sf->ref_count++;
mtx_unlock(&sf_buf_lock);
}
More information about the svn-src-head
mailing list