summaryrefslogtreecommitdiff
path: root/drivers/dahdi/wcte12xp/base.c
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2010-07-26 00:30:36 +0000
committerShaun Ruffell <sruffell@digium.com>2010-07-26 00:30:36 +0000
commitaaad56c3ef82b84f509bdb8ab0424905dd56dc3b (patch)
tree8e5ec6016eb7d7ea4602384afba79cabce3b94aa /drivers/dahdi/wcte12xp/base.c
parent7f51846ded65617ea0c5742c9f93999b8b0e0478 (diff)
wcte12xp: Do not call destory_workqueue if the workqueue was not yet created.
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@8980 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/wcte12xp/base.c')
-rw-r--r--drivers/dahdi/wcte12xp/base.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/dahdi/wcte12xp/base.c b/drivers/dahdi/wcte12xp/base.c
index a09f6d8..0981749 100644
--- a/drivers/dahdi/wcte12xp/base.c
+++ b/drivers/dahdi/wcte12xp/base.c
@@ -707,7 +707,10 @@ static void free_wc(struct t1 *wc)
list_del_init(&cmd->node);
free_cmd(wc, cmd);
}
- destroy_workqueue(wc->wq);
+
+ if (wc->wq)
+ destroy_workqueue(wc->wq);
+
kfree(wc);
}