workqueue: Removed double allocation of wq_update_pod_attrs_buf
authorSteven Rostedt (Google) <rostedt@goodmis.org>
Tue, 5 Sep 2023 21:49:35 +0000 (17:49 -0400)
committerTejun Heo <tj@kernel.org>
Mon, 18 Sep 2023 18:35:25 +0000 (08:35 -1000)
commita6828214480e2f00a8a7e64c7a55fc42b0f54e1c
tree91d296782d7efb39c350d6aa4965654477e08c68
parentce9ecca0238b140b88f43859b211c9fdfd8e5b70
workqueue: Removed double allocation of wq_update_pod_attrs_buf

First commit 2930155b2e272 ("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, commit 84193c07105c6
("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: 84193c07105c6 ("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>
kernel/workqueue.c