mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
Use M_ZERO to not panic in mtx_init when INVARIANTS enabled.
Submitted by: simokawa MFC after: 1 week
This commit is contained in:
parent
268597acfe
commit
9595dba40d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=137936
@ -393,7 +393,7 @@ g_uzip_taste(struct g_class *mp, struct g_provider *pp, int flags)
|
||||
/*
|
||||
* Initialize softc and read offsets.
|
||||
*/
|
||||
sc = malloc(sizeof(*sc), M_GEOM_UZIP, M_WAITOK);
|
||||
sc = malloc(sizeof(*sc), M_GEOM_UZIP, M_WAITOK | M_ZERO);
|
||||
gp->softc = sc;
|
||||
sc->blksz = ntohl(header->blksz);
|
||||
sc->nblocks = ntohl(header->nblocks);
|
||||
|
Loading…
Reference in New Issue
Block a user