]> git.baikalelectronics.ru Git - kernel.git/commit
md/raid5: fix new memory-reference bug in alloc_thread_groups.
authorNeilBrown <neilb@suse.de>
Mon, 25 Nov 2013 00:12:43 +0000 (11:12 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 28 Nov 2013 00:00:04 +0000 (11:00 +1100)
commit3981bf5ed2f4f98f84bd08b8021c8727d8330f0b
treef32462cf475fb8a9a4fbe395c7016086159e1a43
parent446a01ebfd5c46dcad993153e533f5f1d30e2d44
md/raid5: fix new memory-reference bug in alloc_thread_groups.

In alloc_thread_groups, worker_groups is a pointer to an array,
not an array of pointers.
So
   worker_groups[i]
is wrong.  It should be
   &(*worker_groups)[i]

Found-by: coverity
Fixes: d8a0d6017c7c
Reported-by: Ben Hutchings <bhutchings@solarflare.com>
Cc: majianpeng <majianpeng@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid5.c