summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-02-28 22:15:50 -0500
committerIan Moffett <ian@osmora.org>2024-02-28 22:15:50 -0500
commit8468f515530ee8974ff42d8fdbdc6eb65fbe35ec (patch)
tree33b3b90b6d72cd84bcc4350931b984eb54ec1b89
parent4e5adb9e6f34dca3cfe762523eb52780dba72cf6 (diff)
kernel: vfs_cache: Fix type bug
Signed-off-by: Ian Moffett <ian@osmora.org>
-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) {