diff options
Diffstat (limited to 'fs/bio.c')
-rw-r--r-- | fs/bio.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -547,11 +547,11 @@ static int __bio_copy_iov(struct bio *bio, struct bio_vec *iovecs, | |||
547 | int bio_uncopy_user(struct bio *bio) | 547 | int bio_uncopy_user(struct bio *bio) |
548 | { | 548 | { |
549 | struct bio_map_data *bmd = bio->bi_private; | 549 | struct bio_map_data *bmd = bio->bi_private; |
550 | int ret; | 550 | int ret = 0; |
551 | |||
552 | ret = __bio_copy_iov(bio, bmd->iovecs, bmd->sgvecs, bmd->nr_sgvecs, 1, | ||
553 | bmd->is_our_pages); | ||
554 | 551 | ||
552 | if (!bio_flagged(bio, BIO_NULL_MAPPED)) | ||
553 | ret = __bio_copy_iov(bio, bmd->iovecs, bmd->sgvecs, | ||
554 | bmd->nr_sgvecs, 1, bmd->is_our_pages); | ||
555 | bio_free_map_data(bmd); | 555 | bio_free_map_data(bmd); |
556 | bio_put(bio); | 556 | bio_put(bio); |
557 | return ret; | 557 | return ret; |