aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/linear.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/linear.c')
-rw-r--r--drivers/md/linear.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/md/linear.c b/drivers/md/linear.c
index 21014836bdbf..f03fabd2b37b 100644
--- a/drivers/md/linear.c
+++ b/drivers/md/linear.c
@@ -317,8 +317,7 @@ static void linear_make_request(struct mddev *mddev, struct bio *bio)
317 bio_io_error(bio); 317 bio_io_error(bio);
318 return; 318 return;
319 } 319 }
320 if (unlikely(bio->bi_sector + (bio->bi_size >> 9) > 320 if (unlikely(bio_end_sector(bio) > tmp_dev->end_sector)) {
321 tmp_dev->end_sector)) {
322 /* This bio crosses a device boundary, so we have to 321 /* This bio crosses a device boundary, so we have to
323 * split it. 322 * split it.
324 */ 323 */