mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07: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:
1 parent
5c529597e9
commit
cece95dfe5
1 file changed
+1
-1
+1
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user