aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/md/raid1.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c
index b36231866336..0a3988a25aab 100644
--- a/drivers/md/raid1.c
+++ b/drivers/md/raid1.c
@@ -1906,10 +1906,9 @@ static int process_checks(struct r1bio *r1_bio)
1906 else 1906 else
1907 bi->bv_len = size; 1907 bi->bv_len = size;
1908 size -= PAGE_SIZE; 1908 size -= PAGE_SIZE;
1909 memcpy(page_address(bi->bv_page),
1910 page_address(pbio->bi_io_vec[j].bv_page),
1911 PAGE_SIZE);
1912 } 1909 }
1910
1911 bio_copy_data(sbio, pbio);
1913 } 1912 }
1914 return 0; 1913 return 0;
1915} 1914}