summaryrefslogtreecommitdiffstats
path: root/sys/dev/md/md.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/md/md.c')
-rw-r--r--sys/dev/md/md.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c
index fdcf4f6..4c5e557 100644
--- a/sys/dev/md/md.c
+++ b/sys/dev/md/md.c
@@ -819,8 +819,6 @@ mdcreate_malloc(struct md_s *sc, struct md_ioctl *mdio)
break;
}
}
- if (error != 0)
- uma_zdestroy(sc->uma);
return (error);
}
@@ -945,9 +943,8 @@ mddestroy(struct md_s *sc, struct thread *td)
FREAD : (FREAD|FWRITE), sc->cred, td);
if (sc->cred != NULL)
crfree(sc->cred);
- if (sc->object != NULL) {
+ if (sc->object != NULL)
vm_object_deallocate(sc->object);
- }
if (sc->indir)
destroy_indir(sc, sc->indir);
if (sc->uma)
OpenPOWER on IntegriCloud