diff options
author | pjd <pjd@FreeBSD.org> | 2004-09-14 19:55:07 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2004-09-14 19:55:07 +0000 |
commit | e32c315aa757c4a2a64946f8bae894243e147542 (patch) | |
tree | ff004f5925f0d08f349d30892d2064e92979aacb /sys/dev/md | |
parent | 4e7ebd879c74920fc2eefaf660838f2a340595d8 (diff) | |
download | FreeBSD-src-e32c315aa757c4a2a64946f8bae894243e147542.zip FreeBSD-src-e32c315aa757c4a2a64946f8bae894243e147542.tar.gz |
Deallocate VM object on failure.
Diffstat (limited to 'sys/dev/md')
-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); } |