summaryrefslogtreecommitdiff
path: root/kernel/fs/ext2.c
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2023-11-10 15:19:49 +0100
committerAnton Kling <anton@kling.gg>2023-11-10 15:19:49 +0100
commit0cb4afef6da5488a128e5aaece435e9aa5f5797e (patch)
treeb77f05fa03878bad5542c31e42f19f4c99034149 /kernel/fs/ext2.c
parent8ffef83741948964171ca111fd7c90534515ae87 (diff)
Kernel/Memory: Fill new allocations with random data.
This should make it easier to spot uninitalized memory being used.
Diffstat (limited to 'kernel/fs/ext2.c')
-rw-r--r--kernel/fs/ext2.c2
1 files changed, 1 insertions, 1 deletions
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,