diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c index 3970bf8a31ca..1c2c1b07b309 100644 --- a/sys/kern/vfs_mount.c +++ b/sys/kern/vfs_mount.c @@ -1189,6 +1189,7 @@ static void devfs_first(void) { struct thread *td = curthread; + struct vfsoptlist *opts; struct vfsconf *vfsp; struct mount *mp = NULL; int error; @@ -1208,6 +1209,10 @@ devfs_first(void) if (error) return; + opts = malloc(sizeof(struct vfsoptlist), M_MOUNT, M_WAITOK); + TAILQ_INIT(opts); + mp->mnt_opt = opts; + mtx_lock(&mountlist_mtx); TAILQ_INSERT_HEAD(&mountlist, mp, mnt_list); mtx_unlock(&mountlist_mtx);