diff options
| author | Yu Kuai <[email protected]> | 2023-05-24 01:41:18 +0000 |
|---|---|---|
| committer | Song Liu <[email protected]> | 2023-05-24 17:44:19 +0000 |
| commit | 8557dc27126949c702bd3aafe8a7e0b7e4fcb44c (patch) | |
| tree | 493e064583a5cbaf280647a472a9a881285c0282 /net/nsh/nsh.c | |
| parent | block: make bio_check_eod work for zero sized devices (diff) | |
| download | kernel-8557dc27126949c702bd3aafe8a7e0b7e4fcb44c.tar.gz kernel-8557dc27126949c702bd3aafe8a7e0b7e4fcb44c.zip | |
md/raid5: fix miscalculation of 'end_sector' in raid5_read_one_chunk()
'end_sector' is compared to 'rdev->recovery_offset', which is offset to
rdev, however, commit e82ed3a4fbb5 ("md/raid6: refactor
raid5_read_one_chunk") changes the calculation of 'end_sector' to offset
to the array. Fix this miscalculation.
Fixes: e82ed3a4fbb5 ("md/raid6: refactor raid5_read_one_chunk")
Cc: [email protected] # v5.12+
Signed-off-by: Yu Kuai <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Song Liu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'net/nsh/nsh.c')
0 files changed, 0 insertions, 0 deletions
