diff options
Diffstat (limited to 'fs/ext2/inode.c')
-rw-r--r-- | fs/ext2/inode.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ext2/inode.c b/fs/ext2/inode.c index c260de6d7b6d..8a337640a46a 100644 --- a/fs/ext2/inode.c +++ b/fs/ext2/inode.c | |||
@@ -632,6 +632,8 @@ static int ext2_get_blocks(struct inode *inode, | |||
632 | int count = 0; | 632 | int count = 0; |
633 | ext2_fsblk_t first_block = 0; | 633 | ext2_fsblk_t first_block = 0; |
634 | 634 | ||
635 | BUG_ON(maxblocks == 0); | ||
636 | |||
635 | depth = ext2_block_to_path(inode,iblock,offsets,&blocks_to_boundary); | 637 | depth = ext2_block_to_path(inode,iblock,offsets,&blocks_to_boundary); |
636 | 638 | ||
637 | if (depth == 0) | 639 | if (depth == 0) |