mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
- Correct another atomic op.
Spotted by: alc
This commit is contained in:
parent
3f54508cba
commit
3306adcfcf
1 changed files with 2 additions and 1 deletions
|
|
@ -2702,7 +2702,8 @@ allocbuf(struct buf *bp, int size)
|
|||
} else {
|
||||
free(bp->b_data, M_BIOBUF);
|
||||
if (bp->b_bufsize) {
|
||||
atomic_add_int(&bufmallocspace,
|
||||
atomic_subtract_int(
|
||||
&bufmallocspace,
|
||||
bp->b_bufsize);
|
||||
bufspacewakeup();
|
||||
bp->b_bufsize = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue