Selaa lähdekoodia

tm: fix delete_cell() when the transaction is referenced

- reset the timer list prior to calling set_timer
Andrei Pelinescu-Onciul 17 vuotta sitten
vanhempi
commit
e88ed0daa7
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      modules/tm/timer.c

+ 2 - 0
modules/tm/timer.c

@@ -230,6 +230,8 @@ static void delete_cell( struct cell *p_cell, int unlock )
 		DBG("DEBUG: delete_cell %p: can't delete -- still reffed\n",
 			p_cell);
 		/* it's added to del list for future del */
+		p_cell->dele_tl.timer_list=0;/* hack: reset the list so that 
+									   set_timer() will work */
 		set_timer( &(p_cell->dele_tl), DELETE_LIST, 0 );
 	} else {
 		if (unlock) UNLOCK_HASH(p_cell->hash_index);