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 | 2cd8d17ed1ec887b0cbacbdd84b046e7f7c76fe2 (patch) | |
tree | fd770e2e8c88bba6db89592ecf673846d21ddfd6 | |
parent | 5d4da4042445651edafa173e8c3261469473908a (diff) |
Shouldn't destroy the workqueue with the lock held.
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.2@3561 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-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 3222f64..9050c6e 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); |