From c31eef63dcaccc525ce7f74c5ddd25e23b88fbe7 Mon Sep 17 00:00:00 2001 From: kan Date: Sun, 23 Nov 2003 17:13:48 +0000 Subject: Do not attempt to destroy NULL vfs options list. Approved by: re (scottl) Reported by: Christian Laursen --- sys/kern/vfs_mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/kern') diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c index 9b5261f..b265fc3 100644 --- a/sys/kern/vfs_mount.c +++ b/sys/kern/vfs_mount.c @@ -533,7 +533,7 @@ vfs_mount_destroy(struct mount *mp, struct thread *td) #ifdef MAC mac_destroy_mount(mp); #endif - if (mp->mnt_op->vfs_mount == NULL) + if (mp->mnt_opt != NULL) vfs_freeopts(mp->mnt_opt); crfree(mp->mnt_cred); free(mp, M_MOUNT); -- cgit v1.1