[AX25] ax25_timer: use mod_timer instead of add_timer
authorJarek Poplawski <jarkao2@gmail.com>
Tue, 12 Feb 2008 05:36:39 +0000 (21:36 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Feb 2008 01:53:33 +0000 (17:53 -0800)
commit21fab4a86a411c18c6b4d663ae710ca1f6206b3c
treeae10e8f7571a04cb16147403bb8a11e8e55d8d10
parent4de211f1a279275c6c67d6e9b6b25513e46b0bb9
[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>
include/net/ax25.h
net/ax25/af_ax25.c
net/ax25/ax25_timer.c