Fix missed locking

Signed-off-by: Bart Van Assche <bvanassche@acm.org>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4657 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2012-12-20 02:26:28 +00:00
parent 5fe3432935
commit 55a596b073

View File

@@ -998,7 +998,9 @@ out:
#ifndef CONFIG_SCST_PROC
out_del_unlocked:
mutex_lock(&scst_mutex);
list_del(&dev->dev_list_entry);
mutex_unlock(&scst_mutex);
scst_free_device(dev);
goto out;
#else