diff options
Diffstat (limited to 'sys/dev/md/md.c')
-rw-r--r-- | sys/dev/md/md.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c index a312425..6b46e4b 100644 --- a/sys/dev/md/md.c +++ b/sys/dev/md/md.c @@ -1057,6 +1057,8 @@ mdcreate_swap(struct md_ioctl *mdio, struct thread *td) } error = mdsetcred(sc, td->td_ucred); if (error) { + vm_object_deallocate(sc->object); + sc->object = NULL; mddestroy(sc, td); return (error); } |