Commit f8b20a4
md/raid10: fix wrong setting of max_corr_read_errors
There is no input check when echo md/max_read_errors and overflow might
occur. Add check of input number.
Fixes: 1e50915 ("raid: improve MD/raid10 handling of correctable read errors.")
Signed-off-by: Li Nan <linan122@huawei.com>
Reviewed-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20230522072535.1523740-3-linan666@huaweicloud.com1 parent 6beb489 commit f8b20a4
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4468 | 4468 | | |
4469 | 4469 | | |
4470 | 4470 | | |
| 4471 | + | |
| 4472 | + | |
4471 | 4473 | | |
4472 | 4474 | | |
4473 | 4475 | | |
| |||
0 commit comments