summaryrefslogtreecommitdiffstats
path: root/sys/ufs/ffs/ffs_vfsops.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/ufs/ffs/ffs_vfsops.c')
-rw-r--r--sys/ufs/ffs/ffs_vfsops.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c
index 5ee123a..4d9754e 100644
--- a/sys/ufs/ffs/ffs_vfsops.c
+++ b/sys/ufs/ffs/ffs_vfsops.c
@@ -169,7 +169,8 @@ ffs_mount(struct mount *mp, struct thread *td)
* persist "snapshot" in the options list.
*/
vfs_deleteopt(mp->mnt_optnew, "snapshot");
- vfs_deleteopt(mp->mnt_opt, "snapshot");
+ if (mp->mnt_opt != NULL)
+ vfs_deleteopt(mp->mnt_opt, "snapshot");
}
MNT_ILOCK(mp);
OpenPOWER on IntegriCloud