summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-04-09 08:29:11 +0200
committerTejun Heo <tj@kernel.org>2013-04-09 20:33:40 +0200
commitcece95dfe5aa56ba99e51b4746230ff0b8542abd (patch)
tree32ceba3269028558bf3d66592f3054746459a0c2
parentworkqueue: avoid false negative WARN_ON() in destroy_workqueue() (diff)
downloadlinux-cece95dfe5aa56ba99e51b4746230ff0b8542abd.tar.xz
linux-cece95dfe5aa56ba99e51b4746230ff0b8542abd.zip
workqueue: use kmem_cache_free() instead of kfree()
memory allocated by kmem_cache_alloc() should be freed using kmem_cache_free(), not kfree(). Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Tejun Heo <tj@kernel.org>
-rw-r--r--kernel/workqueue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c
index c273376ff73e..154aa12af48e 100644
--- a/kernel/workqueue.c
+++ b/kernel/workqueue.c
@@ -3750,7 +3750,7 @@ static void free_unbound_pwq(struct pool_workqueue *pwq)
if (pwq) {
put_unbound_pool(pwq->pool);
- kfree(pwq);
+ kmem_cache_free(pwq_cache, pwq);
}
}