[AX25] ax25_timer: use mod_timer instead of add_timer
According to one of Jann's OOPS reports it looks like BUG_ON(timer_pending(timer)) triggers during add_timer() in ax25_start_t1timer(). This patch changes current use of: init_timer(), add_timer() and del_timer() to setup_timer() with mod_timer(), which should be safer anyway. Reported-by: Jann Traschewski <jann@gmx.de> Signed-off-by: Jarek Poplawski <jarkao2@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
4de211f1a2
commit
21fab4a86a
@@ -416,6 +416,7 @@ extern void ax25_calculate_rtt(ax25_cb *);
|
||||
extern void ax25_disconnect(ax25_cb *, int);
|
||||
|
||||
/* ax25_timer.c */
|
||||
extern void ax25_setup_timers(ax25_cb *);
|
||||
extern void ax25_start_heartbeat(ax25_cb *);
|
||||
extern void ax25_start_t1timer(ax25_cb *);
|
||||
extern void ax25_start_t2timer(ax25_cb *);
|
||||
|
Reference in New Issue
Block a user