Browse Source

ext4_fs: zero the inode when allocated

pull/12/head
ngkaho1234 9 years ago
parent
commit
81637302cb
  1. 2
      src/ext4_fs.c

2
src/ext4_fs.c

@ -864,6 +864,8 @@ int ext4_fs_alloc_inode(struct ext4_fs *fs, struct ext4_inode_ref *inode_ref,
/* Initialize i-node */
struct ext4_inode *inode = inode_ref->inode;
memset(inode, 0, inode_size);
uint32_t mode;
if (is_dir) {
/*

Loading…
Cancel
Save