diff options
author | Li Nan <linan122@huawei.com> | 2023-05-22 10:25:33 +0300 |
---|---|---|
committer | Song Liu <song@kernel.org> | 2023-06-14 01:13:21 +0300 |
commit | 6beb489b2eed25978523f379a605073f99240c50 (patch) | |
tree | 11ad58c24c74f3387b8eabee225bc7a9c3d7dead /scripts/lib/kdoc/kdoc_output.py | |
parent | 868bba54a3bcbfc34314e963d5a7e66717f39d4e (diff) | |
download | linux-6beb489b2eed25978523f379a605073f99240c50.tar.xz |
md/raid10: fix overflow of md/safe_mode_delay
There is no input check when echo md/safe_mode_delay in safe_delay_store().
And msec might also overflow when HZ < 1000 in safe_delay_show(), Fix it by
checking overflow in safe_delay_store() and use unsigned long conversion in
safe_delay_show().
Fixes: 72e02075a33f ("md: factor out parsing of fixed-point numbers")
Signed-off-by: Li Nan <linan122@huawei.com>
Signed-off-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20230522072535.1523740-2-linan666@huaweicloud.com
Diffstat (limited to 'scripts/lib/kdoc/kdoc_output.py')
0 files changed, 0 insertions, 0 deletions