Message ID | 200904092032.n39KWqYF011512@imap1.linux-foundation.org |
---|---|
State | Not Applicable, archived |
Headers | show |
diff -puN fs/ext3/inode.c~ext3-fix-chain-verification-in-ext3_get_blocks fs/ext3/inode.c --- a/fs/ext3/inode.c~ext3-fix-chain-verification-in-ext3_get_blocks +++ a/fs/ext3/inode.c @@ -820,7 +820,7 @@ int ext3_get_blocks_handle(handle_t *han while (count < maxblocks && count <= blocks_to_boundary) { ext3_fsblk_t blk; - if (!verify_chain(chain, partial)) { + if (!verify_chain(chain, chain + depth - 1)) { /* * Indirect block might be removed by * truncate while we were reading it.