summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/vfs_cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c
index 7586325..fe31c75 100644
--- a/sys/kern/vfs_cache.c
+++ b/sys/kern/vfs_cache.c
@@ -117,7 +117,7 @@ vfs_cache_fetch_mp(const char *path, struct mount **mp)
void
vfs_init_cache(void)
{
- mountlist = dynalloc(sizeof(struct mount) * MOUNTLIST_SIZE);
+ mountlist = dynalloc(sizeof(struct mountlist_entry) * MOUNTLIST_SIZE);
__assert(mountlist != NULL);
for (size_t i = 0; i < MOUNTLIST_SIZE; ++i) {