diff --git a/sys/vfs/tmpfs/tmpfs_vfsops.c b/sys/vfs/tmpfs/tmpfs_vfsops.c --- a/sys/vfs/tmpfs/tmpfs_vfsops.c +++ b/sys/vfs/tmpfs/tmpfs_vfsops.c @@ -97,7 +97,7 @@ tmpfs_mount(struct mount *mp, char *path, caddr_t data, struct ucred *cred) { struct tmpfs_mount *tmp; - struct tmpfs_node *root; + struct tmpfs_node *root = NULL; struct tmpfs_mount_info args; vm_pindex_t pages; vm_pindex_t pages_limit; @@ -217,8 +217,6 @@ * We are backed by swap, set snocache chflags flag so we * don't trip over swapcache. */ - root->tn_flags = SF_NOCACHE; - if (error != 0 || root == NULL) { kmalloc_destroy(&tmp->tm_name_zone); kmalloc_destroy(&tmp->tm_dirent_zone_obj);