diff options
author | Yuval Basson <ybason@marvell.com> | 2020-03-25 22:50:43 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-05-02 08:51:04 +0200 |
commit | ba8eb38f67f5892423afa9ee7529a44a7130698a (patch) | |
tree | aefb11623133addbf2a5b9dadc88e6a146002bba /tools/perf/scripts/python/export-to-postgresql.py | |
parent | cb07b0e9289dee3a8acb3beccc6068a4dd4e8205 (diff) |
qed: Fix race condition between scheduling and destroying the slowpath workqueue
commit 3b85720d3fd72e6ef4de252cd2f67548eb645eb4 upstream.
Calling queue_delayed_work concurrently with
destroy_workqueue might race to an unexpected outcome -
scheduled task after wq is destroyed or other resources
(like ptt_pool) are freed (yields NULL pointer dereference).
cancel_delayed_work prevents the race by cancelling
the timer triggered for scheduling a new task.
Fixes: 59ccf86fe ("qed: Add driver infrastucture for handling mfw requests")
Signed-off-by: Denis Bolotin <dbolotin@marvell.com>
Signed-off-by: Michal Kalderon <mkalderon@marvell.com>
Signed-off-by: Yuval Basson <ybason@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions