diff options
author | Filipe David Borba Manana <fdmanana@gmail.com> | 2013-11-25 03:22:07 (GMT) |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2014-01-28 21:19:47 (GMT) |
commit | 68ba990f7d161c31e9eddd98727ba8393089047f (patch) | |
tree | 878300bec16c15982ba085ba6bddb6d17b7d903c /fs | |
parent | 5a4267ca20d4c452a97dace4612f1dfc04147fbd (diff) | |
download | linux-68ba990f7d161c31e9eddd98727ba8393089047f.tar.xz |
Btrfs: fix extent boundary check in bio_readpage_error
Signed-off-by: Filipe David Borba Manana <fdmanana@gmail.com>
Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/extent_io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index d97250a..3721820 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -2156,7 +2156,7 @@ static int bio_readpage_error(struct bio *failed_bio, u64 phy_offset, return -EIO; } - if (em->start > start || em->start + em->len < start) { + if (em->start > start || em->start + em->len <= start) { free_extent_map(em); em = NULL; } |