https://github.com/torvalds/linux
Revision 36707bb2e7c6730d79d6cdc6d1475d3d7e94c518 authored by NeilBrown on 24 September 2015, 05:25:36 UTC, committed by NeilBrown on 02 October 2015, 07:23:43 UTC
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>
1 parent ebda780
History
Tip revision: 36707bb2e7c6730d79d6cdc6d1475d3d7e94c518 authored by NeilBrown on 24 September 2015, 05:25:36 UTC
md/raid5: don't index beyond end of array in need_this_block().
Tip revision: 36707bb
File Mode Size
Documentation
arch
block
certs
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.get_maintainer.ignore -rw-r--r-- 31 bytes
.gitignore -rw-r--r-- 1.2 KB
.mailmap -rw-r--r-- 5.3 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 94.9 KB
Kbuild -rw-r--r-- 2.6 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 319.8 KB
Makefile -rw-r--r-- 53.2 KB
README -rw-r--r-- 18.2 KB
REPORTING-BUGS -rw-r--r-- 7.3 KB

README

back to top