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

Commit f41a2fe2 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "zram: allow request end to coincide with disksize"

parents 91286872 369499e4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -180,7 +180,7 @@ static inline int valid_io_request(struct zram *zram, struct bio *bio)
	end = start + (bio->bi_size >> SECTOR_SHIFT);
	bound = zram->disksize >> SECTOR_SHIFT;
	/* out of range range */
	if (unlikely(start >= bound || end >= bound || start > end))
	if (unlikely(start >= bound || end > bound || start > end))
		return 0;

	/* I/O request is valid */