-
Notifications
You must be signed in to change notification settings - Fork 93
Open
Description
The i.MX timer's set_timeout function converts absolute times to relative without checking that the time is in the future. This leads to an attempt to set a very large relative timeout instead of returning ETIME.
| if (type == TIMEOUT_ABSOLUTE) { |
Also, non-periodic relative timeouts that are too far into the future for a 32-bit timer should saturate to 0xffffffff so that the timeout is received early, rather than returning EINVAL.
The omap version of set_timeout handles both of these cases; I think the code can simply be copied from there.
| static int set_timeout(void *data, uint64_t ns, timeout_type_t type) |
Metadata
Metadata
Assignees
Labels
No labels