Patchwork An inlinedata bug in ext4_destroy_inline_data_nolock()

login
register
mail settings
Submitter baixing quan
Date Oct. 13, 2013, 1:15 p.m.
Message ID <CACKVGOYWmVu0s0D1ZNxCERmOGSUGiUVUT2AVWNKUfNE7bwKpiw@mail.gmail.com>
Download mbox | patch
Permalink /patch/283088/
State New
Headers show

Comments

baixing quan - Oct. 13, 2013, 1:15 p.m.
Signed-off-by: Baixing Quan <quabaixin@gmai.com>
---
 fs/ext4/inline.c |    1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/fs/ext4/inline.c b/fs/ext4/inline.c
index d9ecbf1..cc6375e 100644
--- a/fs/ext4/inline.c
+++ b/fs/ext4/inline.c
@@ -434,6 +434,7 @@  static int ext4_destroy_inline_data_nolock(handle_t *handle,

        memset((void *)ext4_raw_inode(&is.iloc)->i_block,
                0, EXT4_MIN_INLINE_DATA_SIZE);
+       memset(ei->i_data, 0, sizeof(ei->i_data));

        if (EXT4_HAS_INCOMPAT_FEATURE(inode->i_sb,
                                      EXT4_FEATURE_INCOMPAT_EXTENTS)) {