summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc/kvec/errors.rs
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@kernel.org>2026-03-04 15:40:39 -0800
committerJoel Fernandes <joelagnelf@nvidia.com>2026-03-30 15:48:14 -0400
commita18396219ba52b524d8b86bf9e2515b01c068614 (patch)
treed4964678a62554b90afb359bacd8df04e503d158 /rust/kernel/alloc/kvec/errors.rs
parent2243517a5440caa635b945deb7915397ef39b29b (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/kvec/errors.rs')
0 files changed, 0 insertions, 0 deletions