projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c52959
)
workqueue: use kmem_cache_free() instead of kfree()
author
Wei Yongjun
<yongjun_wei@trendmicro.com.cn>
Tue, 9 Apr 2013 06:29:11 +0000
(14:29 +0800)
committer
Tejun Heo
<tj@kernel.org>
Tue, 9 Apr 2013 18:33:40 +0000
(11:33 -0700)
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>
kernel/workqueue.c
patch
|
blob
|
history
diff --git
a/kernel/workqueue.c
b/kernel/workqueue.c
index c273376ff73e6550e411eb9573b37178432d3d9a..154aa12af48e6a29313b6214bcb5c24fbf88e343 100644
(file)
--- a/
kernel/workqueue.c
+++ b/
kernel/workqueue.c
@@
-3750,7
+3750,7
@@
static void free_unbound_pwq(struct pool_workqueue *pwq)
if (pwq) {
put_unbound_pool(pwq->pool);
- k
free(
pwq);
+ k
mem_cache_free(pwq_cache,
pwq);
}
}