Do not assert that the new pipepair mutex is not initialized. The

backing memory contains garbage and might trigger the assertion.

Reported and tested by:	pho
Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
This commit is contained in:
Konstantin Belousov 2015-01-21 16:32:54 +00:00
parent 9e8bff64cb
commit fe63170115
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=277489

View File

@ -318,7 +318,7 @@ pipe_zone_init(void *mem, int size, int flags)
pp = (struct pipepair *)mem;
mtx_init(&pp->pp_mtx, "pipe mutex", NULL, MTX_DEF);
mtx_init(&pp->pp_mtx, "pipe mutex", NULL, MTX_DEF | MTX_NEW);
return (0);
}