diff options
author | alex.bluesman.smirnov@gmail.com <alex.bluesman.smirnov@gmail.com> | 2012-04-25 23:24:58 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-04-26 05:32:55 -0400 |
commit | 768f7c7c121e80f458a9d013b2e8b169e5dfb1e5 (patch) | |
tree | dab910f7034bdb550e9b4f91f60045e64986e500 /net/ieee802154/6lowpan.c | |
parent | 8deff4af8745561efd2be34ee30cc57a6f0107c6 (diff) | |
download | linux-3.10-768f7c7c121e80f458a9d013b2e8b169e5dfb1e5.tar.gz linux-3.10-768f7c7c121e80f458a9d013b2e8b169e5dfb1e5.tar.bz2 linux-3.10-768f7c7c121e80f458a9d013b2e8b169e5dfb1e5.zip |
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>
Diffstat (limited to 'net/ieee802154/6lowpan.c')
-rw-r--r-- | net/ieee802154/6lowpan.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ieee802154/6lowpan.c b/net/ieee802154/6lowpan.c index b3021f76520..840821b90bc 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; |