From 0cb4afef6da5488a128e5aaece435e9aa5f5797e Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Fri, 10 Nov 2023 15:19:49 +0100 Subject: Kernel/Memory: Fill new allocations with random data. This should make it easier to spot uninitalized memory being used. --- kernel/fs/ext2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kernel/fs/ext2.c') diff --git a/kernel/fs/ext2.c b/kernel/fs/ext2.c index 0c226cf..6bde98b 100644 --- a/kernel/fs/ext2.c +++ b/kernel/fs/ext2.c @@ -58,7 +58,7 @@ void cached_read_block(uint32_t block, void *address, size_t size, struct BLOCK_CACHE *c = &cache[free_found]; c->block_num = block; read_lba(block * block_byte_size / 512, c->block, 1024, 0); - return cached_read_block(block, address, size, offset); + cached_read_block(block, address, size, offset); } void ext2_read_block(uint32_t block, void *address, size_t size, -- cgit v1.2.3