diff options
-rw-r--r-- | drivers/md/raid5.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index 47da0af6322b..676d8b7c5117 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c | |||
@@ -5471,7 +5471,7 @@ static int alloc_thread_groups(struct r5conf *conf, int cnt, | |||
5471 | for (i = 0; i < *group_cnt; i++) { | 5471 | for (i = 0; i < *group_cnt; i++) { |
5472 | struct r5worker_group *group; | 5472 | struct r5worker_group *group; |
5473 | 5473 | ||
5474 | group = worker_groups[i]; | 5474 | group = &(*worker_groups)[i]; |
5475 | INIT_LIST_HEAD(&group->handle_list); | 5475 | INIT_LIST_HEAD(&group->handle_list); |
5476 | group->conf = conf; | 5476 | group->conf = conf; |
5477 | group->workers = workers + i * cnt; | 5477 | group->workers = workers + i * cnt; |