Commit 2e0b6901 authored by Tejun Heo's avatar Tejun Heo Committed by Kleber Sacilotto de Souza

workqueue: Fix missing kfree(rescuer) in destroy_workqueue()

BugLink: https://bugs.launchpad.net/bugs/1858489

commit 8efe1223 upstream.
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Reported-by: default avatarQian Cai <cai@lca.pw>
Fixes: def98c84 ("workqueue: Fix spurious sanity check failures in destroy_workqueue()")
Cc: Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarConnor Kuehl <connor.kuehl@canonical.com>
Signed-off-by: default avatarKleber Sacilotto de Souza <kleber.souza@canonical.com>
parent 0ce5c0c7
......@@ -3975,6 +3975,7 @@ void destroy_workqueue(struct workqueue_struct *wq)
/* rescuer will empty maydays list before exiting */
kthread_stop(rescuer->task);
kfree(rescuer);
}
/* sanity checks */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment