mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-26 13:44:15 +08:00
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:
parent
5c529597e9
commit
cece95dfe5
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user