소스 검색

- avp race condition fix (backported from HEAD)

Jan Janak 20 년 전
부모
커밋
7e9f6fd258
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      modules/tm/timer.c

+ 1 - 1
modules/tm/timer.c

@@ -653,7 +653,7 @@ static void insert_timer_unsafe( struct timer *timer_list, struct timer_link *tl
 	for(ptr = timer_list->last_tl.prev_tl; 
 	    ptr != &timer_list->first_tl; 
 	    ptr = ptr->prev_tl) {
-		if (ptr->time_out <= time_out) break;
+		if ((ptr->time_out != TIMER_DELETED) && (ptr->time_out <= time_out)) break;
 	}
 
 	tl->prev_tl = ptr;