]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - drivers/md/dm-verity.c
block: Add bio_end_sector()
[mirror_ubuntu-artful-kernel.git] / drivers / md / dm-verity.c
index 6ad538375c3c82ba0d345d2ccab3955b31ab3f30..923115d08baa8e3325e6d936c5f61743d2293d09 100644 (file)
@@ -472,7 +472,7 @@ static int verity_map(struct dm_target *ti, struct bio *bio)
                return -EIO;
        }
 
-       if ((bio->bi_sector + bio_sectors(bio)) >>
+       if (bio_end_sector(bio) >>
            (v->data_dev_block_bits - SECTOR_SHIFT) > v->data_blocks) {
                DMERR_LIMIT("io out of range");
                return -EIO;