summaryrefslogtreecommitdiff
path: root/raid6check.c
diff options
context:
space:
mode:
Diffstat (limited to 'raid6check.c')
-rw-r--r--raid6check.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/raid6check.c b/raid6check.c
index 042f7d07..48e9094a 100644
--- a/raid6check.c
+++ b/raid6check.c
@@ -354,7 +354,7 @@ int check_stripes(struct mdinfo *info, int *source, unsigned long long *offsets,
blocks_page[i] = blocks[i] + j * CHECK_PAGE_SIZE;
}
if (disk[j] == diskQ) {
- qsyndrome(p, (uint8_t*)stripes[diskQ], (uint8_t**)blocks_page, data_disks, CHECK_PAGE_SIZE);
+ qsyndrome(p, (uint8_t*)stripes[diskQ] + j * CHECK_PAGE_SIZE, (uint8_t**)blocks_page, data_disks, CHECK_PAGE_SIZE);
} else {
char *all_but_failed_blocks[data_disks];
int failed_block_index = block_index_for_slot[disk[j]];