mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
Mutex memory is not zeroed, add MTX_NEW.
Reported and tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week
This commit is contained in:
parent
280d77a3bb
commit
9889bbac23
1 changed files with 1 additions and 1 deletions
|
|
@ -583,7 +583,7 @@ aio_init_aioinfo(struct proc *p)
|
|||
struct kaioinfo *ki;
|
||||
|
||||
ki = uma_zalloc(kaio_zone, M_WAITOK);
|
||||
mtx_init(&ki->kaio_mtx, "aiomtx", NULL, MTX_DEF);
|
||||
mtx_init(&ki->kaio_mtx, "aiomtx", NULL, MTX_DEF | MTX_NEW);
|
||||
ki->kaio_flags = 0;
|
||||
ki->kaio_maxactive_count = max_aio_per_proc;
|
||||
ki->kaio_active_count = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue