提交 cece95df 编写于 作者: W Wei Yongjun 提交者: Tejun Heo

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: NWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: NTejun Heo <tj@kernel.org>
上级 5c529597
...@@ -3750,7 +3750,7 @@ static void free_unbound_pwq(struct pool_workqueue *pwq) ...@@ -3750,7 +3750,7 @@ static void free_unbound_pwq(struct pool_workqueue *pwq)
if (pwq) { if (pwq) {
put_unbound_pool(pwq->pool); put_unbound_pool(pwq->pool);
kfree(pwq); kmem_cache_free(pwq_cache, pwq);
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册