projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f73953c
)
ext4: Fix off-by-one-error in ext4_valid_extent_idx()
author
Thiemo Nagel
<thiemo.nagel@ph.tum.de>
Sun, 5 Apr 2009 03:30:44 +0000
(23:30 -0400)
committer
Theodore Ts'o
<tytso@mit.edu>
Sun, 5 Apr 2009 03:30:44 +0000
(23:30 -0400)
Signed-off-by: Thiemo Nagel <thiemo.nagel@ph.tum.de>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/extents.c
patch
|
blob
|
history
diff --git
a/fs/ext4/extents.c
b/fs/ext4/extents.c
index ac77d8b8251da9cb6ac720db55e8b7e72ec97a91..6132353dcf62a5a167d62d6d34f2343fd5a4533a 100644
(file)
--- a/
fs/ext4/extents.c
+++ b/
fs/ext4/extents.c
@@
-342,7
+342,7
@@
static int ext4_valid_extent_idx(struct inode *inode,
ext4_fsblk_t block = idx_pblock(ext_idx);
struct ext4_super_block *es = EXT4_SB(inode->i_sb)->s_es;
if (unlikely(block < le32_to_cpu(es->s_first_data_block) ||
- (block > ext4_blocks_count(es))))
+ (block >
=
ext4_blocks_count(es))))
return 0;
else
return 1;