scst: Verify a locking assumption at runtime

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8462 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2019-07-21 01:47:49 +00:00
parent 0979cd90e4
commit 81729121b0

View File

@@ -5280,6 +5280,8 @@ void scst_tgt_dev_stop_threads(struct scst_tgt_dev *tgt_dev)
TRACE_ENTRY();
lockdep_assert_held(&scst_mutex);
if (tgt_dev->dev->threads_num < 0)
goto out_deinit;