aboutsummaryrefslogtreecommitdiffstats
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 f103729b462..694fefad34e 100644
--- a/block/blk-map.c
+++ b/block/blk-map.c
@@ -156,7 +156,7 @@ int blk_rq_map_user(struct request_queue *q, struct request *rq,
156 if (!bio_flagged(bio, BIO_USER_MAPPED)) 156 if (!bio_flagged(bio, BIO_USER_MAPPED))
157 rq->cmd_flags |= REQ_COPY_USER; 157 rq->cmd_flags |= REQ_COPY_USER;
158 158
159 rq->buffer = rq->data = NULL; 159 rq->buffer = NULL;
160 return 0; 160 return 0;
161unmap_rq: 161unmap_rq:
162 blk_rq_unmap_user(bio); 162 blk_rq_unmap_user(bio);
@@ -235,7 +235,7 @@ int blk_rq_map_user_iov(struct request_queue *q, struct request *rq,
235 blk_queue_bounce(q, &bio); 235 blk_queue_bounce(q, &bio);
236 bio_get(bio); 236 bio_get(bio);
237 blk_rq_bio_prep(q, rq, bio); 237 blk_rq_bio_prep(q, rq, bio);
238 rq->buffer = rq->data = NULL; 238 rq->buffer = NULL;
239 return 0; 239 return 0;
240} 240}
241EXPORT_SYMBOL(blk_rq_map_user_iov); 241EXPORT_SYMBOL(blk_rq_map_user_iov);
@@ -313,7 +313,7 @@ int blk_rq_map_kern(struct request_queue *q, struct request *rq, void *kbuf,
313 313
314 blk_rq_bio_prep(q, rq, bio); 314 blk_rq_bio_prep(q, rq, bio);
315 blk_queue_bounce(q, &rq->bio); 315 blk_queue_bounce(q, &rq->bio);
316 rq->buffer = rq->data = NULL; 316 rq->buffer = NULL;
317 return 0; 317 return 0;
318} 318}
319EXPORT_SYMBOL(blk_rq_map_kern); 319EXPORT_SYMBOL(blk_rq_map_kern);