summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/Makefile
diff options
context:
space:
mode:
authorKevin Vigor <kvigor@gmail.com>2020-11-06 23:20:34 +0100
committerSong Liu <songliubraving@fb.com>2020-11-30 19:12:28 +0100
commit93decc563637c4288380912eac0eb42fb246cc04 (patch)
tree90c3383f0d46040d1e66f7ec1febeb93f58d451f /drivers/rtc/Makefile
parentmd: fix a warning caused by a race between concurrent md_ioctl()s (diff)
downloadlinux-93decc563637c4288380912eac0eb42fb246cc04.tar.xz
linux-93decc563637c4288380912eac0eb42fb246cc04.zip
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: Kevin Vigor <kvigor@gmail.com> Signed-off-by: Song Liu <songliubraving@fb.com>
Diffstat (limited to 'drivers/rtc/Makefile')
0 files changed, 0 insertions, 0 deletions