From: NeilBrown Date: Thu, 24 Sep 2015 05:25:36 +0000 (+1000) Subject: md/raid5: don't index beyond end of array in need_this_block(). X-Git-Tag: omap-for-v4.3/fixes-rc5~41^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36707bb2e7c6730d79d6cdc6d1475d3d7e94c518;p=pandora-kernel.git 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 Signed-off-by: NeilBrown --- Reading git-diff-tree failed