[PATCH] workqueue: Add destroy_work_on_stack() in workqueue_softirq_dead()

From: Zqiang
Date: Mon Apr 08 2024 - 04:48:59 EST


This commit add missed destroy_work_on_stack() operations for
dead_work.work.

Signed-off-by: Zqiang <qiang.zhang1211@xxxxxxxxx>
---
kernel/workqueue.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/kernel/workqueue.c b/kernel/workqueue.c
index db004d2180e8..1edb0b06ae7c 100644
--- a/kernel/workqueue.c
+++ b/kernel/workqueue.c
@@ -3661,6 +3661,7 @@ void workqueue_softirq_dead(unsigned int cpu)
queue_work(system_bh_wq, &dead_work.work);

wait_for_completion(&dead_work.done);
+ destroy_work_on_stack(&dead_work.work);
}
}

--
2.17.1