mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-24 23:35:32 +02:00
swconfig: fix lock imbalance in unregister_switch()
Signed-off-by: Karl Beldan <karl.beldan@sagemcom.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21780 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
b4566a37d1
commit
f03c775c62
@ -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 New Issue
Block a user