Skip to content
Commit 93decc56 authored by Kevin Vigor's avatar Kevin Vigor Committed by Song Liu
Browse files

md/raid10: initialize r10_bio->read_slot before use.



In __make_request() a new r10bio is allocated and passed to
raid10_read_request(). The read_slot member of the bio is not
initialized, and the raid10_read_request() uses it to index an
array. This leads to occasional panics.

Fix by initializing the field to invalid value and checking for
valid value in raid10_read_request().

Cc: stable@vger.kernel.org
Signed-off-by: default avatarKevin Vigor <kvigor@gmail.com>
Signed-off-by: default avatarSong Liu <songliubraving@fb.com>
parent c731b84b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment