summaryrefslogtreecommitdiffstats
path: root/sys/geom/cache/g_cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/geom/cache/g_cache.c')
-rw-r--r--sys/geom/cache/g_cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/cache/g_cache.c b/sys/geom/cache/g_cache.c
index 378c2f2..ba701ac 100644
--- a/sys/geom/cache/g_cache.c
+++ b/sys/geom/cache/g_cache.c
@@ -502,7 +502,7 @@ g_cache_create(struct g_class *mp, struct g_provider *pp,
return (NULL);
}
- 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);
sc->sc_type = type;
sc->sc_bshift = bshift;
OpenPOWER on IntegriCloud