diff options
| author | Kevin Vigor <kvigor@gmail.com> | 2020-11-06 14:20:34 -0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-01-06 14:48:35 +0100 |
| commit | d3076d054f3e1dc7165449a1d901c98030bae508 (patch) | |
| tree | 9a1a24c92dcb7d85b979b9f03088688d99b455b0 /drivers/thermal | |
| parent | c71c512f4a65267e6a18163f4df729c489a51035 (diff) | |
| download | linux-d3076d054f3e1dc7165449a1d901c98030bae508.tar.gz linux-d3076d054f3e1dc7165449a1d901c98030bae508.tar.bz2 linux-d3076d054f3e1dc7165449a1d901c98030bae508.zip | |
md/raid10: initialize r10_bio->read_slot before use.
commit 93decc563637c4288380912eac0eb42fb246cc04 upstream.
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: Kevin Vigor <kvigor@gmail.com>
Signed-off-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/thermal')
0 files changed, 0 insertions, 0 deletions
