mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Move KASSERT into locked region.
Submitted by: kib
This commit is contained in:
parent
df3394b3de
commit
cd1692fa5d
1 changed files with 1 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue