From 703ffcb43df24020a99b61e107f06bd76f1fcecf Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Mon, 26 Jul 2010 00:30:36 +0000 Subject: 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 --- drivers/dahdi/wcte12xp/base.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'drivers/dahdi/wcte12xp') 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); } -- cgit v1.2.3