workqueue: Fix missing kfree(rescuer) in destroy_workqueue()
commit 8efe1223d73c218ce7e8b2e0e9aadb974b582d7f upstream. Signed-off-by: Tejun Heo <tj@kernel.org> Reported-by: Qian Cai <cai@lca.pw> Fixes: def98c84b6cd ("workqueue: Fix spurious sanity check failures in destroy_workqueue()") Cc: Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
d88fb4f0b0
commit
1b83d5756a
@ -4180,6 +4180,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 */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user