diff options
Diffstat (limited to 'fs/bio.c')
-rw-r--r-- | fs/bio.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -859,7 +859,7 @@ struct bio *bio_copy_user_iov(struct request_queue *q, | |||
859 | /* | 859 | /* |
860 | * success | 860 | * success |
861 | */ | 861 | */ |
862 | if (!write_to_vm) { | 862 | if (!write_to_vm && (!map_data || !map_data->null_mapped)) { |
863 | ret = __bio_copy_iov(bio, bio->bi_io_vec, iov, iov_count, 0, 0); | 863 | ret = __bio_copy_iov(bio, bio->bi_io_vec, iov, iov_count, 0, 0); |
864 | if (ret) | 864 | if (ret) |
865 | goto cleanup; | 865 | goto cleanup; |