aboutsummaryrefslogtreecommitdiffstats
path: root/block/blk-map.c
diff options
context:
space:
mode:
Diffstat (limited to 'block/blk-map.c')
-rw-r--r--block/blk-map.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/block/blk-map.c b/block/blk-map.c
index 0760963546dd..c07d9c8317f4 100644
--- a/block/blk-map.c
+++ b/block/blk-map.c
@@ -152,10 +152,10 @@ int blk_rq_map_user(struct request_queue *q, struct request *rq,
152 */ 152 */
153 if (len & q->dma_pad_mask) { 153 if (len & q->dma_pad_mask) {
154 unsigned int pad_len = (q->dma_pad_mask & ~len) + 1; 154 unsigned int pad_len = (q->dma_pad_mask & ~len) + 1;
155 struct bio *bio = rq->biotail; 155 struct bio *tail = rq->biotail;
156 156
157 bio->bi_io_vec[bio->bi_vcnt - 1].bv_len += pad_len; 157 tail->bi_io_vec[tail->bi_vcnt - 1].bv_len += pad_len;
158 bio->bi_size += pad_len; 158 tail->bi_size += pad_len;
159 159
160 rq->extra_len += pad_len; 160 rq->extra_len += pad_len;
161 } 161 }