From: alex.bluesman.smirnov@gmail.com Date: Wed, 25 Apr 2012 23:24:58 +0000 (+0000) Subject: 6lowpan: add missing spin_lock_init() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=768f7c7c121e80f458a9d013b2e8b169e5dfb1e5;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 6lowpan: add missing spin_lock_init() Add missing spin_lock_init() for frames list lock. Signed-off-by: Alexander Smirnov Signed-off-by: David S. Miller --- diff --git a/net/ieee802154/6lowpan.c b/net/ieee802154/6lowpan.c index b3021f765204..840821b90bcd 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;