Merge tag 'for-5.15/dm-changes' of git://git.kernel.org/pub/scm/linux/kernel/git...
[platform/kernel/linux-rpi.git] / drivers / md / dm-ebs-target.c
index ec84266..d259896 100644 (file)
@@ -74,7 +74,7 @@ static int __ebs_rw_bvec(struct ebs_c *ec, int rw, struct bio_vec *bv, struct bv
        if (unlikely(!bv->bv_page || !bv_len))
                return -EIO;
 
-       pa = page_address(bv->bv_page) + bv->bv_offset;
+       pa = bvec_virt(bv);
 
        /* Handle overlapping page <-> blocks */
        while (bv_len) {