mirror of
https://github.com/schoebel/mars
synced 2025-01-17 04:20:59 +00:00
infra: fix potential overflow in timeout return
This commit is contained in:
parent
1cd77abe6d
commit
cce2e21c08
@ -29,7 +29,7 @@
|
||||
*/
|
||||
#define brick_wait(wq, flag, condition, timeout) \
|
||||
({ \
|
||||
unsigned long __tmout = (timeout); \
|
||||
long __tmout = (timeout); \
|
||||
int __old_flag; \
|
||||
\
|
||||
might_sleep(); \
|
||||
|
Loading…
Reference in New Issue
Block a user