Files
linux-stable-mirror/drivers
Yu Kuai cbfed647fd md/raid5: fix miscalculation of 'end_sector' in raid5_read_one_chunk()
commit 8557dc2712 upstream.

'end_sector' is compared to 'rdev->recovery_offset', which is offset to
rdev, however, commit e82ed3a4fb ("md/raid6: refactor
raid5_read_one_chunk") changes the calculation of 'end_sector' to offset
to the array. Fix this miscalculation.

Fixes: e82ed3a4fb ("md/raid6: refactor raid5_read_one_chunk")
Cc: stable@vger.kernel.org # v5.12+
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20230524014118.3172781-1-yukuai1@huaweicloud.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-06-09 10:34:20 +02:00
..
2023-06-09 10:34:16 +02:00
2023-05-11 23:03:28 +09:00
2023-06-09 10:34:13 +02:00
2023-05-30 14:03:22 +01:00