Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 68ba990f authored by Filipe David Borba Manana's avatar Filipe David Borba Manana Committed by Chris Mason
Browse files

Btrfs: fix extent boundary check in bio_readpage_error

parent 5a4267ca
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
		}