Patchwork [net,3/3] 6lowpan: add missing spin_lock_init()

login
register
mail settings
Submitter alex.bluesman.smirnov@gmail.com
Date April 26, 2012, 9:24 a.m.
Message ID <1335432298-17161-4-git-send-email-alex.bluesman.smirnov@gmail.com>
Download mbox | patch
Permalink /patch/155206/
State Accepted
Delegated to: David Miller
Headers show

Comments

alex.bluesman.smirnov@gmail.com - April 26, 2012, 9:24 a.m.
Add missing spin_lock_init() for frames list lock.

Signed-off-by: Alexander Smirnov <alex.bluesman.smirnov@gmail.com>
---
 net/ieee802154/6lowpan.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Patch

diff --git a/net/ieee802154/6lowpan.c b/net/ieee802154/6lowpan.c
index a21ca6e..b570dbf 100644
--- a/net/ieee802154/6lowpan.c
+++ b/net/ieee802154/6lowpan.c
@@ -1168,6 +1168,8 @@  static int lowpan_newlink(struct net *src_net, struct net_device *dev,
 	list_add_tail(&entry->list, &lowpan_devices);
 	mutex_unlock(&lowpan_dev_info(dev)->dev_list_mtx);
 
+	spin_lock_init(&flist_lock);
+
 	register_netdevice(dev);
 
 	return 0;