summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/geom/mirror/g_mirror.c1
-rw-r--r--sys/geom/raid3/g_raid3.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/sys/geom/mirror/g_mirror.c b/sys/geom/mirror/g_mirror.c
index 41d2a18..cfea71f 100644
--- a/sys/geom/mirror/g_mirror.c
+++ b/sys/geom/mirror/g_mirror.c
@@ -2528,6 +2528,7 @@ g_mirror_taste(struct g_class *mp, struct g_provider *pp, int flags __unused)
/*
* Let's check if device already exists.
*/
+ sc = NULL;
LIST_FOREACH(gp, &mp->geom, geom) {
sc = gp->softc;
if (sc == NULL)
diff --git a/sys/geom/raid3/g_raid3.c b/sys/geom/raid3/g_raid3.c
index 19e5b2a..3ff2087 100644
--- a/sys/geom/raid3/g_raid3.c
+++ b/sys/geom/raid3/g_raid3.c
@@ -2733,6 +2733,7 @@ g_raid3_taste(struct g_class *mp, struct g_provider *pp, int flags __unused)
/*
* Let's check if device already exists.
*/
+ sc = NULL;
LIST_FOREACH(gp, &mp->geom, geom) {
sc = gp->softc;
if (sc == NULL)
OpenPOWER on IntegriCloud