mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-04 08:17:46 +00:00
workqueue: Removed double allocation of wq_update_pod_attrs_buf
First commit2930155b2e
("workqueue: Initialize unbound CPU pods later in the boot") added the initialization of wq_update_pod_attrs_buf to workqueue_init_early(), and then latter on, commit84193c0710
("workqueue: Generalize unbound CPU pods") added it as well. This appeared in a kmemleak run where the second allocation made the first allocation leak. Fixes:84193c0710
("workqueue: Generalize unbound CPU pods") Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
parent
ce9ecca023
commit
a682821448
1 changed files with 0 additions and 3 deletions
|
@ -6535,9 +6535,6 @@ void __init workqueue_init_early(void)
|
|||
|
||||
BUG_ON(!zalloc_cpumask_var_node(&pt->pod_cpus[0], GFP_KERNEL, NUMA_NO_NODE));
|
||||
|
||||
wq_update_pod_attrs_buf = alloc_workqueue_attrs();
|
||||
BUG_ON(!wq_update_pod_attrs_buf);
|
||||
|
||||
pt->nr_pods = 1;
|
||||
cpumask_copy(pt->pod_cpus[0], cpu_possible_mask);
|
||||
pt->pod_node[0] = NUMA_NO_NODE;
|
||||
|
|
Loading…
Add table
Reference in a new issue