aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/bio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bio.c b/fs/bio.c
index 7bbc98f0eda1..ee3bc67833d2 100644
--- a/fs/bio.c
+++ b/fs/bio.c
@@ -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);