Skip to content

Commit

Permalink
6lowpan: add missing spin_lock_init()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
alex.bluesman.smirnov@gmail.com authored and David S. Miller committed Apr 26, 2012
1 parent 8deff4a commit 768f7c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/ieee802154/6lowpan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 768f7c7

Please sign in to comment.