Commit cece95df authored by Wei Yongjun's avatar Wei Yongjun Committed by 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: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 5c529597
......@@ -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);
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment