aboutsummaryrefslogtreecommitdiff
path: root/sys/geom/multipath
diff options
context:
space:
mode:
authorJaakko Heinonen <jh@FreeBSD.org>2012-11-20 12:32:18 +0000
committerJaakko Heinonen <jh@FreeBSD.org>2012-11-20 12:32:18 +0000
commit02c62349c93f29b881498630c7a0623540255764 (patch)
treed75016205cbfeb373d0f3a16c6943a09f85df034 /sys/geom/multipath
parent7a4385053091e8cb67bcabb24e9b850162f2750a (diff)
Notes
Diffstat (limited to 'sys/geom/multipath')
-rw-r--r--sys/geom/multipath/g_multipath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/multipath/g_multipath.c b/sys/geom/multipath/g_multipath.c
index 7ca0082fb489..8b6337602668 100644
--- a/sys/geom/multipath/g_multipath.c
+++ b/sys/geom/multipath/g_multipath.c
@@ -429,7 +429,7 @@ g_multipath_create(struct g_class *mp, struct g_multipath_metadata *md)
}
}
- gp = g_new_geomf(mp, md->md_name);
+ gp = g_new_geomf(mp, "%s", md->md_name);
sc = g_malloc(sizeof(*sc), M_WAITOK | M_ZERO);
mtx_init(&sc->sc_mtx, "multipath", NULL, MTX_DEF);
memcpy(sc->sc_uuid, md->md_uuid, sizeof (sc->sc_uuid));