summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2010-04-06 19:05:28 +0000
committerShaun Ruffell <sruffell@digium.com>2010-04-06 19:05:28 +0000
commit9a9d3061ebfbdfd39c8cd79fcb17f259140685c0 (patch)
tree4bbe06507535541d70c2a8ed593cd9b1f16900f9
parent3023a1acaf23f5c970b0e850370232c19ae372d4 (diff)
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
-rw-r--r--drivers/dahdi/wcte12xp/base.c3
1 files changed, 2 insertions, 1 deletions
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)