diff options
author | Li Nan <[email protected]> | 2023-05-22 15:25:33 +0800 |
---|---|---|
committer | Song Liu <[email protected]> | 2023-06-13 15:13:21 -0700 |
commit | 6beb489b2eed25978523f379a605073f99240c50 (patch) | |
tree | 11ad58c24c74f3387b8eabee225bc7a9c3d7dead /scripts/gdb/linux/timerlist.py | |
parent | 868bba54a3bcbfc34314e963d5a7e66717f39d4e (diff) |
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 <[email protected]>
Signed-off-by: Song Liu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gdb/linux/timerlist.py')
0 files changed, 0 insertions, 0 deletions