Commit 00f1b1eb authored by Andries E. Brouwer's avatar Andries E. Brouwer Committed by Linus Torvalds

[PATCH] krxtimod.c fix: make timeouts unsigned long

parent 6ea2645f
......@@ -98,18 +98,18 @@ static int krxtimod(void *arg)
spin_lock(&krxtimod_lock);
if (list_empty(&krxtimod_list)) {
timeout = MAX_SCHEDULE_TIMEOUT;
}
else {
timer = list_entry(krxtimod_list.next,rxrpc_timer_t,link);
timeout = timer->timo_jif;
} else {
unsigned long tmo;
timer = list_entry(krxtimod_list.next,
rxrpc_timer_t, link);
tmo = timer->timo_jif;
jif = jiffies;
if (time_before_eq(timeout,jif))
if (time_before_eq(tmo,jif))
goto immediate;
else {
timeout = (long)timeout - (long)jiffies;
}
timeout = (long)tmo - (long)jiffies;
}
spin_unlock(&krxtimod_lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment