commit | 332b7df61b82af911a5343b4414a0fa92013a41b | [log] [tgz] |
---|---|---|
author | Peter Bigot <peter.bigot@nordicsemi.no> | Tue Sep 15 20:06:49 2020 -0500 |
committer | Anas Nashif <anas.nashif@intel.com> | Thu Sep 17 22:19:35 2020 -0400 |
tree | 7b22d6389e441c2749ef6089580b86a2bc8c530f | |
parent | 840eaab97022fd602fb701e1ec525bcf98ecae21 [diff] |
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>