commit | 36707bb2e7c6730d79d6cdc6d1475d3d7e94c518 | [log] [tgz] |
---|---|---|
author | NeilBrown <neilb@suse.com> | Thu Sep 24 15:25:36 2015 +1000 |
committer | NeilBrown <neilb@suse.com> | Fri Oct 02 17:23:43 2015 +1000 |
tree | 37ea9a4b0e716212bfd411f4c2d9e971ff8dc5f3 | |
parent | ebda780bce8d58ec0abab157397c9e099c41a05f [diff] |
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>