diff --git a/sys/kern/vfs_default.c b/sys/kern/vfs_default.c index 4c7e8781d1ba..50c5ffb5f209 100644 --- a/sys/kern/vfs_default.c +++ b/sys/kern/vfs_default.c @@ -601,6 +601,8 @@ vop_stdgetwritemount(ap) */ vp = ap->a_vp; mp = vp->v_mount; + if (mp == NULL) + goto out; MNT_ILOCK(mp); if (mp != vp->v_mount) { MNT_IUNLOCK(mp);