NeilBrown 36707bb2e7 md/raid5: don't index beyond end of array in need_this_block().
When need_this_block probably shouldn't be called when there
are more than 2 failed devices, we really don't want it to try
indexing beyond the end of the failed_num[] of fdev[] arrays.

So limit the loops to at most 2 iterations.

Reported-by: Shaohua Li <shli@fb.com>
Signed-off-by: NeilBrown <neilb@suse.de>
2015-10-02 17:23:43 +10:00
..
2015-07-25 11:24:58 -07:00
2015-04-22 07:59:39 +10:00
2014-01-14 23:23:03 -05:00
2015-08-13 12:32:04 -06:00
2013-08-23 09:02:13 -04:00
2012-07-30 17:25:16 -07:00
2015-08-13 12:31:57 -06:00
2015-09-11 18:15:18 -07:00
2015-08-13 12:31:57 -06:00
2015-08-13 12:31:57 -06:00