diff options
| -rw-r--r-- | sys/dev/md/md.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c index 8e91c6f50415..639f4d8b37ac 100644 --- a/sys/dev/md/md.c +++ b/sys/dev/md/md.c @@ -947,6 +947,7 @@ mdcreate_vnode(struct md_s *sc, struct md_ioctl *mdio, struct thread *td) error = mdsetcred(sc, td->td_ucred); if (error != 0) { + sc->vnode = NULL; vn_lock(nd.ni_vp, LK_EXCLUSIVE | LK_RETRY); nd.ni_vp->v_vflag &= ~VV_MD; VOP_UNLOCK(nd.ni_vp, 0); |
