diff options
| author | Kaho Ng <ngkaho1234@gmail.com> | 2016-05-16 01:48:02 +0800 |
|---|---|---|
| committer | Kaho Ng <ngkaho1234@gmail.com> | 2016-05-16 01:50:33 +0800 |
| commit | 9fdd0b708e0068d6c0be75b7e3df7bbdb7d1d236 (patch) | |
| tree | bacd72856362ee5d6e63d2533b8c0d7024ac2000 /src | |
| parent | d6816b4c0d80b8068b22db6161ec660506ad58d7 (diff) | |
ext4_xattr: clear the content of acl block buffer before writing
Diffstat (limited to 'src')
| -rw-r--r-- | src/ext4_xattr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ext4_xattr.c b/src/ext4_xattr.c index dca8b56..7a7dcf4 100644 --- a/src/ext4_xattr.c +++ b/src/ext4_xattr.c @@ -778,6 +778,8 @@ static int ext4_xattr_write_to_disk(struct ext4_xattr_ref *xattr_ref) if (ret != EOK) goto Finish; } + memset(xattr_ref->block.data, 0, + ext4_sb_get_block_size(&xattr_ref->fs->sb)); block_header = EXT4_XATTR_BHDR(&xattr_ref->block); block_entry = EXT4_XATTR_BFIRST(&xattr_ref->block); ext4_xattr_set_block_header(xattr_ref); |
