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>
This commit is contained in:
Wei Yongjun 2013-04-09 14:29:11 +08:00 committed by Tejun Heo
parent 5c529597e9
commit cece95dfe5

View file

@ -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);
}
}