Skip to content

Commit

Permalink
workqueue: Fix missing kfree(rescuer) in destroy_workqueue()
Browse files Browse the repository at this point in the history
commit 8efe1223d73c218ce7e8b2e0e9aadb974b582d7f upstream.

Signed-off-by: Tejun Heo <[email protected]>
Reported-by: Qian Cai <[email protected]>
Fixes: def98c84b6cd ("workqueue: Fix spurious sanity check failures in destroy_workqueue()")
Cc: Nobuhiro Iwamatsu <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
htejun authored and gregkh committed Dec 17, 2019
1 parent d88fb4f commit 1b83d57
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel/workqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -4180,6 +4180,7 @@ void destroy_workqueue(struct workqueue_struct *wq)

/* rescuer will empty maydays list before exiting */
kthread_stop(rescuer->task);
kfree(rescuer);
}

/* sanity checks */
Expand Down

0 comments on commit 1b83d57

Please sign in to comment.