aboutsummaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
Diffstat (limited to 'block')
-rw-r--r--block/ll_rw_blk.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/block/ll_rw_blk.c b/block/ll_rw_blk.c
index c7b1dac8bee9..9eaee6640535 100644
--- a/block/ll_rw_blk.c
+++ b/block/ll_rw_blk.c
@@ -3075,11 +3075,12 @@ end_io:
3075 if (maxsector) { 3075 if (maxsector) {
3076 sector_t sector = bio->bi_sector; 3076 sector_t sector = bio->bi_sector;
3077 3077
3078 if (maxsector < nr_sectors || maxsector - nr_sectors < sector) { 3078 if (maxsector < nr_sectors ||
3079 maxsector - nr_sectors < sector) {
3079 /* 3080 /*
3080 * This may well happen - partitions are not checked 3081 * This may well happen - partitions are not
3081 * to make sure they are within the size of the 3082 * checked to make sure they are within the size
3082 * whole device. 3083 * of the whole device.
3083 */ 3084 */
3084 handle_bad_sector(bio); 3085 handle_bad_sector(bio);
3085 goto end_io; 3086 goto end_io;