6lowpan: add missing spin_lock_init()
authoralex.bluesman.smirnov@gmail.com <alex.bluesman.smirnov@gmail.com>
Wed, 25 Apr 2012 23:24:58 +0000 (23:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Apr 2012 09:32:55 +0000 (05:32 -0400)
Add missing spin_lock_init() for frames list lock.

Signed-off-by: Alexander Smirnov <alex.bluesman.smirnov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ieee802154/6lowpan.c

index b3021f7652041d78c551bdfb4ed223729015279c..840821b90bcd7e11c79c14dd44bcc02aedcedf23 100644 (file)
@@ -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;