commit 6cfd76c32af6a597c60254b460bc2878cbf86b99
parent 254a20900e26e562d032b6ac4c0a4d33d7ded26b
Author: Alexey Yerin <yyp@disroot.org>
Date: Thu, 11 Nov 2021 14:29:57 +0300
fs::mem: fix unitialized inode in create()
Signed-off-by: Alexey Yerin <yyp@disroot.org>
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/fs/mem/mem.ha b/fs/mem/mem.ha
@@ -104,6 +104,7 @@ fn create(
hash = hash_of(name),
data = []: []u8,
parent = parent,
+ ...
});
inode_insert(parent, ino);
return stream_open(ino, mode, appnd)?;