Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kernel: avoid implementation-defined behavior in timeout calculation
When to->dticks is an int64_t it may happen that the calculated remaining time is a value that cannot be exactly represented in the destination int32_t, producing an implementation-defined result which can include a signal (interrupt). Cap the maximum delay to the largest value suported by the int32_t result. Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
- Loading branch information