diff options
-rw-r--r-- | fs/bio.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1198,7 +1198,7 @@ static void bio_copy_kern_endio(struct bio *bio, int err) | |||
1198 | char *addr = page_address(bvec->bv_page); | 1198 | char *addr = page_address(bvec->bv_page); |
1199 | int len = bmd->iovecs[i].bv_len; | 1199 | int len = bmd->iovecs[i].bv_len; |
1200 | 1200 | ||
1201 | if (read && !err) | 1201 | if (read) |
1202 | memcpy(p, addr, len); | 1202 | memcpy(p, addr, len); |
1203 | 1203 | ||
1204 | __free_page(bvec->bv_page); | 1204 | __free_page(bvec->bv_page); |