diff options
-rw-r--r-- | sys/kern/vfs_mount.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c index 486c8a1..64c64c9 100644 --- a/sys/kern/vfs_mount.c +++ b/sys/kern/vfs_mount.c @@ -1151,7 +1151,8 @@ dounmount(mp, flags, td) */ error = vfs_suser(mp, td); if (error) { - VOP_UNLOCK(coveredvp, 0, td); + if (coveredvp) + VOP_UNLOCK(coveredvp, 0, td); return (error); } |