Author: kib
Date: Mon Jul  6 14:09:00 2015
New Revision: 285207
URL: https://svnweb.freebsd.org/changeset/base/285207

Log:
  Mutex memory is not zeroed, add MTX_NEW.
  
  Reported and tested by:       pho
  Sponsored by: The FreeBSD Foundation
  MFC after:    1 week

Modified:
  head/sys/kern/vfs_aio.c

Modified: head/sys/kern/vfs_aio.c
==============================================================================
--- head/sys/kern/vfs_aio.c     Mon Jul  6 13:23:27 2015        (r285206)
+++ head/sys/kern/vfs_aio.c     Mon Jul  6 14:09:00 2015        (r285207)
@@ -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;
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to