From 8468f515530ee8974ff42d8fdbdc6eb65fbe35ec Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Wed, 28 Feb 2024 22:15:50 -0500 Subject: kernel: vfs_cache: Fix type bug Signed-off-by: Ian Moffett --- sys/kern/vfs_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3