swconfig: fix lock imbalance in unregister_switch()
Signed-off-by: Karl Beldan <karl.beldan@sagemcom.com> SVN-Revision: 21780
This commit is contained in:
parent
3165ea7886
commit
e8c46b8a2a
1 changed files with 1 additions and 0 deletions
|
@ -886,6 +886,7 @@ unregister_switch(struct switch_dev *dev)
|
|||
swconfig_lock();
|
||||
list_del(&dev->dev_list);
|
||||
swconfig_unlock();
|
||||
spin_unlock(&dev->lock);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(unregister_switch);
|
||||
|
||||
|
|
Loading…
Reference in a new issue