mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
ext3: fix possible non-initialized variable on htree_dirblock_to_tree()
This is a backport of ext4 commit 90b0a9732 which fixes a possible
non-initialized variable on htree_dirblock_to_tree().
Ext3 has the same non initialized variable, but, in any case it will be
initialized by ext3_get_blocks_handle(), which will avoid the bug to be
triggered, but, the non-initialized variable by htree_dirblock_to_tree() is
still a bug.
Signed-off-by: Carlos Maiolino <[email protected]>
Signed-off-by: Jan Kara <[email protected]>
This commit is contained in:
parent
9e2d8656f5
commit
aa9660196b
1 changed files with 1 additions and 1 deletions
|
|
@ -559,7 +559,7 @@ static int htree_dirblock_to_tree(struct file *dir_file,
|
|||
{
|
||||
struct buffer_head *bh;
|
||||
struct ext3_dir_entry_2 *de, *top;
|
||||
int err, count = 0;
|
||||
int err = 0, count = 0;
|
||||
|
||||
dxtrace(printk("In htree dirblock_to_tree: block %d\n", block));
|
||||
if (!(bh = ext3_bread (NULL, dir, block, 0, &err)))
|
||||
|
|
|
|||
Loading…
Reference in a new issue