diff options
author | sruffell <sruffell@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-12-27 18:02:05 +0000 |
---|---|---|
committer | sruffell <sruffell@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-12-27 18:02:05 +0000 |
commit | fa59eb223fbbedbbaee28ff483ce25505618a038 (patch) | |
tree | 3842b9f0ee6c4275d0859077bc00d85b084ed92b /wcte12xp/vpmadt032.c | |
parent | a386673b4bd9021c12371d0a6a9fb8774d4c859f (diff) |
Shouldn't destroy the workqueue with the lock held.
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3561 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'wcte12xp/vpmadt032.c')
-rw-r--r-- | wcte12xp/vpmadt032.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wcte12xp/vpmadt032.c b/wcte12xp/vpmadt032.c index bdf170c..14af1ed 100644 --- a/wcte12xp/vpmadt032.c +++ b/wcte12xp/vpmadt032.c @@ -953,10 +953,10 @@ void t1_vpm150m_init(struct t1 *wc) { return; failed_exit: - spin_lock_irqsave(&wc->reglock, flags); if (vpm150m->wq) { destroy_workqueue(vpm150m->wq); } + spin_lock_irqsave(&wc->reglock, flags); wc->vpm150m = NULL; spin_unlock_irqrestore(&wc->reglock, flags); kfree(vpm150m); |