提交 897d54ae 编写于 作者: T Tejun Heo 提交者: Xie XiuQi

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

commit 8efe1223 upstream.
Signed-off-by: NTejun Heo <tj@kernel.org>
Reported-by: NQian 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: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 ecb595b1
...@@ -4272,6 +4272,7 @@ void destroy_workqueue(struct workqueue_struct *wq) ...@@ -4272,6 +4272,7 @@ void destroy_workqueue(struct workqueue_struct *wq)
/* rescuer will empty maydays list before exiting */ /* rescuer will empty maydays list before exiting */
kthread_stop(rescuer->task); kthread_stop(rescuer->task);
kfree(rescuer);
} }
/* sanity checks */ /* sanity checks */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册