浏览代码

6lowpan: add missing spin_lock_init()

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>
alex.bluesman.smirnov@gmail.com 13 年之前
父节点
当前提交
768f7c7c12
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      net/ieee802154/6lowpan.c

+ 2 - 0
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);
 	list_add_tail(&entry->list, &lowpan_devices);
 	mutex_unlock(&lowpan_dev_info(dev)->dev_list_mtx);
 	mutex_unlock(&lowpan_dev_info(dev)->dev_list_mtx);
 
 
+	spin_lock_init(&flist_lock);
+
 	register_netdevice(dev);
 	register_netdevice(dev);
 
 
 	return 0;
 	return 0;