Skip to content
Commit e7a41b27 authored by David Windsor's avatar David Windsor Committed by Greg Kroah-Hartman
Browse files

dlm: check if workqueues are NULL before flushing/destroying

[ Upstream commit b355516f

 ]

If the DLM lowcomms stack is shut down before any DLM
traffic can be generated, flush_workqueue() and
destroy_workqueue() can be called on empty send and/or recv
workqueues.

Insert guard conditionals to only call flush_workqueue()
and destroy_workqueue() on workqueues that are not NULL.

Signed-off-by: default avatarDavid Windsor <dwindsor@redhat.com>
Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 5d59e28c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment