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:
parent
9e8bff64cb
commit
fe63170115
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=277489
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user