ref: 81637302cb63cafb75e1390a0e9bdd0ebaee5677
parent: 716af5fa6399c4a8be1a87331fc70b5d3cf537ae
author: ngkaho1234 <[email protected]>
date: Mon May 16 07:59:46 EDT 2016
ext4_fs: zero the inode when allocated
--- a/src/ext4_fs.c
+++ b/src/ext4_fs.c
@@ -864,6 +864,8 @@
/* Initialize i-node */
struct ext4_inode *inode = inode_ref->inode;
+ memset(inode, 0, inode_size);
+
uint32_t mode;
if (is_dir) {
/*