summaryrefslogtreecommitdiffstats
path: root/sys/geom
diff options
context:
space:
mode:
authorfjoe <fjoe@FreeBSD.org>2004-11-20 13:10:04 +0000
committerfjoe <fjoe@FreeBSD.org>2004-11-20 13:10:04 +0000
commit89f11265145e771e978a462f67761cba4f7e44df (patch)
tree0fc597d82a6c89138d385c76d36b6145f2e0cdec /sys/geom
parentf92a530b7d9d7e1919e222ebabba669236bc54fd (diff)
downloadFreeBSD-src-89f11265145e771e978a462f67761cba4f7e44df.zip
FreeBSD-src-89f11265145e771e978a462f67761cba4f7e44df.tar.gz
Use M_ZERO to not panic in mtx_init when INVARIANTS enabled.
Submitted by: simokawa MFC after: 1 week
Diffstat (limited to 'sys/geom')
-rw-r--r--sys/geom/uzip/g_uzip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/uzip/g_uzip.c b/sys/geom/uzip/g_uzip.c
index 747ca56..98321e8 100644
--- a/sys/geom/uzip/g_uzip.c
+++ b/sys/geom/uzip/g_uzip.c
@@ -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);
OpenPOWER on IntegriCloud