diff options
-rw-r--r-- | sys/kern/vfs_subr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index 1710ad176bb1..4a271c399dd3 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -869,7 +869,7 @@ getnewvnode(const char *tag, struct mount *mp, struct vop_vector *vops, * Wait for available vnodes. */ if (numvnodes > desiredvnodes) { - if (mp->mnt_kern_flag & MNTK_SUSPEND) { + if (mp != NULL && (mp->mnt_kern_flag & MNTK_SUSPEND)) { /* * File system is beeing suspended, we cannot risk a * deadlock here, so allocate new vnode anyway. |