diff --git a/sys/fs/tmpfs/tmpfs_subr.c b/sys/fs/tmpfs/tmpfs_subr.c index a838167b792f..58f3f772d9f8 100644 --- a/sys/fs/tmpfs/tmpfs_subr.c +++ b/sys/fs/tmpfs/tmpfs_subr.c @@ -98,6 +98,7 @@ int tmpfs_pager_type = -1; static struct domainset * tmpfs_get_domainset(void) { + struct domainset * vm_domainset = NULL; switch (vm_domain_policy) { case VM_DOMAIN_POLICY_RR: vm_domainset = DOMAINSET_RR(); @@ -122,6 +123,7 @@ tmpfs_get_domainset(void) printf("unknown tmpfs domain policy: %d, defaulting to NONE\n", vm_domain_policy); break; } + return vm_domainset; } static vm_object_t