From 9a9d3061ebfbdfd39c8cd79fcb17f259140685c0 Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Tue, 6 Apr 2010 19:05:28 +0000 Subject: wcte12xp: Do not restart the timer on alarm poll if shutting down. git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@8480 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/wcte12xp/base.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/dahdi/wcte12xp/base.c b/drivers/dahdi/wcte12xp/base.c index 37d385c..b21f21a 100644 --- a/drivers/dahdi/wcte12xp/base.c +++ b/drivers/dahdi/wcte12xp/base.c @@ -1956,7 +1956,8 @@ static void timer_work_func(struct work_struct *work) t1_do_counters(wc); t1_check_alarms(wc); t1_check_sigbits(wc); - mod_timer(&wc->timer, jiffies + HZ/10); + if (test_bit(INITIALIZED, &wc->bit_flags)) + mod_timer(&wc->timer, jiffies + HZ/10); } #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 20) -- cgit v1.2.3