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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=285207
@ -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 New Issue
Block a user