swconfig: fix lock imbalance in unregister_switch()

Signed-off-by: Karl Beldan <karl.beldan@sagemcom.com>

SVN-Revision: 21780
This commit is contained in:
Gabor Juhos 2010-06-13 11:37:35 +00:00
parent 3165ea7886
commit e8c46b8a2a

View file

@ -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);