mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 18:51:27 +00:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user