commit | cece95dfe5aa56ba99e51b4746230ff0b8542abd | [log] [tgz] |
---|---|---|
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | Tue Apr 09 14:29:11 2013 +0800 |
committer | Tejun Heo <tj@kernel.org> | Tue Apr 09 11:33:40 2013 -0700 |
tree | 32ceba3269028558bf3d66592f3054746459a0c2 | |
parent | 5c529597e922c26910fe49b8d5f93aeaca9a2415 [diff] [blame] |
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>
diff --git a/kernel/workqueue.c b/kernel/workqueue.c index c273376..154aa12 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c
@@ -3750,7 +3750,7 @@ if (pwq) { put_unbound_pool(pwq->pool); - kfree(pwq); + kmem_cache_free(pwq_cache, pwq); } }