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) ...@@ -98,18 +98,18 @@ static int krxtimod(void *arg)
spin_lock(&krxtimod_lock); spin_lock(&krxtimod_lock);
if (list_empty(&krxtimod_list)) { if (list_empty(&krxtimod_list)) {
timeout = MAX_SCHEDULE_TIMEOUT; timeout = MAX_SCHEDULE_TIMEOUT;
} } else {
else { unsigned long tmo;
timer = list_entry(krxtimod_list.next,rxrpc_timer_t,link);
timeout = timer->timo_jif; timer = list_entry(krxtimod_list.next,
rxrpc_timer_t, link);
tmo = timer->timo_jif;
jif = jiffies; jif = jiffies;
if (time_before_eq(timeout,jif)) if (time_before_eq(tmo,jif))
goto immediate; goto immediate;
else { timeout = (long)tmo - (long)jiffies;
timeout = (long)timeout - (long)jiffies;
}
} }
spin_unlock(&krxtimod_lock); 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