aboutsummaryrefslogtreecommitdiff
path: root/sys/geom/geom_aes.c
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2003-02-19 05:47:46 +0000
committerWarner Losh <imp@FreeBSD.org>2003-02-19 05:47:46 +0000
commita163d034fadcfb4a25ca34a2ba5f491c47b6ff69 (patch)
tree9e20e320fe15ae4bf68f8335fcf9d3e71d3b3614 /sys/geom/geom_aes.c
parent8f3e32c2b6b9f392e096f096653596f55f2134ae (diff)
Back out M_* changes, per decision of the TRB.
Approved by: trb
Notes
Notes: svn path=/head/; revision=111119
Diffstat (limited to 'sys/geom/geom_aes.c')
-rw-r--r--sys/geom/geom_aes.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/geom/geom_aes.c b/sys/geom/geom_aes.c
index 5471cbf6c142..72f0d3dcc56f 100644
--- a/sys/geom/geom_aes.c
+++ b/sys/geom/geom_aes.c
@@ -148,7 +148,7 @@ g_aes_read_done(struct bio *bp)
gp = bp->bio_from->geom;
sc = gp->softc;
- sb = g_malloc(sc->sectorsize, 0);
+ sb = g_malloc(sc->sectorsize, M_WAITOK);
b = bp->bio_data;
e = bp->bio_data;
e += bp->bio_length;
@@ -211,7 +211,7 @@ g_aes_start(struct bio *bp)
}
bp2->bio_done = g_aes_write_done;
bp2->bio_offset += sc->sectorsize;
- bp2->bio_data = g_malloc(bp->bio_length, 0);
+ bp2->bio_data = g_malloc(bp->bio_length, M_WAITOK);
b = bp->bio_data;
e = bp->bio_data;
e += bp->bio_length;
@@ -322,7 +322,7 @@ g_aes_taste(struct g_class *mp, struct g_provider *pp, int flags __unused)
if (buf == NULL || error != 0) {
break;
}
- sc = g_malloc(sizeof(struct g_aes_softc), M_ZERO);
+ sc = g_malloc(sizeof(struct g_aes_softc), M_WAITOK | M_ZERO);
if (!memcmp(buf, aes_magic, strlen(aes_magic))) {
sc->keying = KEY_ZERO;
} else if (!memcmp(buf, aes_magic_random,