add_timer() does not set owning process

This commit is contained in:
rgrr 2013-02-13 09:15:11 +01:00
parent 19c8f9ffdd
commit 7cb8148226

View file

@ -155,17 +155,17 @@ add_timer(struct etimer *timer)
etimer_request_poll();
if(timer->p != PROCESS_NONE) {
/* Timer not on list. */
for(t = timerlist; t != NULL; t = t->next) {
if(t == timer) {
/* Timer already on list, bail out. */
timer->p = PROCESS_CURRENT();
update_time();
return;
}
}
}
/* Timer not on list. */
timer->p = PROCESS_CURRENT();
timer->next = timerlist;
timerlist = timer;