dahdi_dynamic: Close race on unload if red alarm timer was running when unloaded.
authorShaun Ruffell <sruffell@digium.com>
Tue, 3 Apr 2012 20:10:12 +0000 (20:10 +0000)
committerShaun Ruffell <sruffell@digium.com>
Tue, 3 Apr 2012 20:10:12 +0000 (20:10 +0000)
commit05bac84ce8686d7edcc027242264fc67657e4d37
tree170ed3366f7aac8bcb3ac9f34c353a8457609b9c
parent5b675ab4003efa77b1b1cd6734843147cf810e72
dahdi_dynamic: Close race on unload if red alarm timer was running when unloaded.

I saw a kernel oops that was the result of the timer running after the
dahdi_dynamic module was unloaded. Now we wait for the timer to complete, and
then delete it again in case it reactivated itself.

Signed-off-by: Shaun Ruffell <sruffell@digium.com>

Origin: http://svnview.digium.com/svn/dahdi?view=rev&rev=10625

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/branches/2.6@10630 a0bf4364-ded3-4de4-8d8a-66a801d63aff
drivers/dahdi/dahdi_dynamic.c