diff options
| author | Paul E. McKenney <paulmck@kernel.org> | 2026-03-04 15:40:39 -0800 |
|---|---|---|
| committer | Joel Fernandes <joelagnelf@nvidia.com> | 2026-03-30 15:48:14 -0400 |
| commit | a18396219ba52b524d8b86bf9e2515b01c068614 (patch) | |
| tree | d4964678a62554b90afb359bacd8df04e503d158 /rust/kernel/alloc | |
| parent | 2243517a5440caa635b945deb7915397ef39b29b (diff) | |
torture: Avoid modulo-zero error in torture_hrtimeout_ns()
Currently, all calls to torture_hrtimeout_ns() either provide a non-zero
fuzzt_ns or a NULL trsp, either of which avoids taking the modulus of a
zero-valued fuzzt_ns. But this code should do a better job of defending
itself, so this commit explicitly checks fuzzt_ns and avoids the modulus
when its value is zero.
Reviewed-by: Joel Fernandes <joelagnelf@nvidia.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Joel Fernandes <joelagnelf@nvidia.com>
Diffstat (limited to 'rust/kernel/alloc')
0 files changed, 0 insertions, 0 deletions
