summaryrefslogtreecommitdiffstats
path: root/sys/geom/geom_sunlabel.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-06-05 20:30:36 +0000
committerphk <phk@FreeBSD.org>2002-06-05 20:30:36 +0000
commit7f7b291518b00d350eb19be5613ba5f44dea5db9 (patch)
treec00bb36b848696cccd66b1b04a81cc487a607ec9 /sys/geom/geom_sunlabel.c
parent93f29d8926acf7a0ce2ceaaef0c39ad3f11172c7 (diff)
downloadFreeBSD-src-7f7b291518b00d350eb19be5613ba5f44dea5db9.zip
FreeBSD-src-7f7b291518b00d350eb19be5613ba5f44dea5db9.tar.gz
Change the registration of magic spaces so it does its own memory management.
Sponsored by: DARPA & NAI Labs.
Diffstat (limited to 'sys/geom/geom_sunlabel.c')
-rw-r--r--sys/geom/geom_sunlabel.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/geom/geom_sunlabel.c b/sys/geom/geom_sunlabel.c
index 6171ac8..7d5f98a 100644
--- a/sys/geom/geom_sunlabel.c
+++ b/sys/geom/geom_sunlabel.c
@@ -180,8 +180,7 @@ g_sunlabel_taste(struct g_class *mp, struct g_provider *pp, int flags)
g_topology_lock();
error = g_access_rel(cp, -1, 0, 0);
if (npart > 0) {
- g_new_magicspaces(gp, 1);
- g_add_magicspace(gp, 0, "label", 0, 512, 0);
+ g_add_magicspace(gp, "label", 0, 512, 0);
return (gp);
}
g_std_spoiled(cp);
OpenPOWER on IntegriCloud