mirror of
https://review.haiku-os.org/haiku
synced 2025-01-31 10:47:14 +01:00
c8394c8111
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>