]> Git Repo - linux.git/commit
workqueue: Remove unnecessary kfree() call in rcu_free_wq()
authorZhang Qiang <[email protected]>
Wed, 27 May 2020 07:57:15 +0000 (15:57 +0800)
committerTejun Heo <[email protected]>
Wed, 27 May 2020 13:52:41 +0000 (09:52 -0400)
commit342ed2400b78072cc01c0130ce41240dec60d56d
tree95d74a595229824b4fd8231ca8d81e147d817a8d
parentb92b36eadf4d7fa4a34f048c2a3bb61a735a885e
workqueue: Remove unnecessary kfree() call in rcu_free_wq()

The data structure member "wq->rescuer" was reset to a null pointer
in one if branch. It was passed to a call of the function "kfree"
in the callback function "rcu_free_wq" (which was eventually executed).
The function "kfree" does not perform more meaningful data processing
for a passed null pointer (besides immediately returning from such a call).
Thus delete this function call which became unnecessary with the referenced
software update.

Fixes: def98c84b6cd ("workqueue: Fix spurious sanity check failures in destroy_workqueue()")
Suggested-by: Markus Elfring <[email protected]>
Signed-off-by: Zhang Qiang <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
kernel/workqueue.c
This page took 0.055325 seconds and 4 git commands to generate.