Those functions might be called on some corner cases without pr_mutex held



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5522 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2014-05-16 02:37:29 +00:00
parent 36f98ec6df
commit 3613f37413

View File

@@ -523,8 +523,6 @@ static void scst_pr_remove_registrants(struct scst_device *dev)
{
struct scst_dev_registrant *reg, *tmp_reg;
scst_assert_pr_mutex_held(dev);
list_for_each_entry_safe(reg, tmp_reg, &dev->dev_registrants_list,
dev_registrants_list_entry) {
scst_pr_remove_registrant(dev, reg);
@@ -1171,8 +1169,6 @@ void scst_pr_clear_dev(struct scst_device *dev)
{
TRACE_ENTRY();
scst_assert_pr_mutex_held(dev);
scst_pr_remove_registrants(dev);
kfree(dev->pr_file_name);