Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qed: Fix race condition between scheduling and destroying the slowpat…
…h workqueue 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: 59ccf86 ("qed: Add driver infrastucture for handling mfw requests") Signed-off-by: Denis Bolotin <[email protected]> Signed-off-by: Michal Kalderon <[email protected]> Signed-off-by: Yuval Basson <[email protected]> Signed-off-by: David S. Miller <[email protected]>
- Loading branch information