mirror of https://github.com/schoebel/mars
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