aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/block/brd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/brd.c b/drivers/block/brd.c
index cb27190e9f39..f7ecc287d733 100644
--- a/drivers/block/brd.c
+++ b/drivers/block/brd.c
@@ -341,7 +341,7 @@ static blk_qc_t brd_make_request(struct request_queue *q, struct bio *bio)
341 341
342 if (unlikely(bio->bi_rw & REQ_DISCARD)) { 342 if (unlikely(bio->bi_rw & REQ_DISCARD)) {
343 if (sector & ((PAGE_SIZE >> SECTOR_SHIFT) - 1) || 343 if (sector & ((PAGE_SIZE >> SECTOR_SHIFT) - 1) ||
344 bio->bi_iter.bi_size & PAGE_MASK) 344 bio->bi_iter.bi_size & ~PAGE_MASK)
345 goto io_error; 345 goto io_error;
346 discard_from_brd(brd, sector, bio->bi_iter.bi_size); 346 discard_from_brd(brd, sector, bio->bi_iter.bi_size);
347 goto out; 347 goto out;