summaryrefslogtreecommitdiff
path: root/drivers/dahdi/wcte12xp
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
commit703ffcb43df24020a99b61e107f06bd76f1fcecf (patch)
tree8e5ec6016eb7d7ea4602384afba79cabce3b94aa /drivers/dahdi/wcte12xp
parenta4f601f1dacb43a41d03621e5e4f8a3e0c11ee07 (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')
-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);
}