Augustin Cavalier c8394c8111 kernel: Adjust timeout computation for syscall_restart.
If the timeout is already >= B_INFINITE_TIMEOUT, we do not need
to do any of the following math (which would usually overflow anyway)
and can leave the timeout alone.

Spotted by kernel undefined behavior sanitizer.

Change-Id: If750a7c4ec0f9607f1c260fded7d393fac88bea7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4561
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2021-10-09 13:32:33 +00:00
..
2021-06-07 07:14:23 +00:00
2020-06-13 23:24:27 +02:00
2021-01-23 12:20:59 +00:00
2019-08-30 18:16:02 -04:00
2020-09-15 20:42:14 +00:00
2021-06-19 18:09:25 +00:00